yashsingh1/xdaforums huggingface dataset:
[Windows Mobile] Farmer Ted:
I think your problem is that you've recmodded a ton of modules; do you have a 6.5 kernel? If you do, recmoding modules is kind of nuts (if you ask me, using HTC bloatware on a non-HTC device is nuts, too, lol-you should be thankful your device didn't come pre-loaded with this garbage). When I look at the addresses of the dll's that are files in all your processes, it looks like every dll is taking up a full 64 Kb of memory, even ones that only need a single page (4 Kb). If they were cooked in as modules, they would be packed in so that they'd only take up 4 Kb virtual memory. Because you recmodded so many modules, this is killing your virtual memory; basically, you have a ton of slack space. This is what I'm talking about (for 'AudioManager_eng.exe' pid c):

1b5b0000(0): -------D--- <-- DLL: msdmo.dll
1b7f0000(0): DDDD <-- DLL: lsomaclient.dll + + +
1b800000(0): D <-- DLL: lsomaui.dll
1b8b0000(0): DD <-- DLL: wininet.dll +
1b9c0000(0): ----------D-- <-- DLL: zlib.dll
1b9d0000(0): ------D-- <-- DLL: ddraw.dll
1ba60000(0): --D-- <-- DLL: ceperf.dll
1ba70000(0): DD <-- DLL: aygshell.dll +
1bb80000(0): D <-- DLL: shlwapi.dll
1bbc0000(0): ----------------
1bbd0000(0): ----------------
1bbe0000(0): -------D--- <-- DLL: rsaenh.dll

Aygshell and shlwapi.dll should both be modules. If they were, they'd only consume 12 kb of ram (3 pages). But, it looks like they're consuming 128 kb of ram. The same goes for ddraw and ceperf. You really need to leave these as modules. You'll have more available memory if you do. I can't look much closer at your stuff since I'm on a netbook for a few days, and it's a pita.

Here's a memory map from one of my roms that I dumped:

01F3F000	01F3FFFF	4095	cellcore.dll
01F40000	01F40FFF	4095	cefobj.dll
01F41000	01F42FFF	8191	cabinstl.dll
01F43000	01F44FFF	8191	aygshell.dll
01F45000	01F45FFF	4095	autotimedll.dll

All the modules with only 1 or 2 pages of ram data load into one right on top of another. Looking at aygshell, it ends at 4fff and the next one starts one byte later, at 45000. This is a much more efficient use of your ram. When I was talking earlier about modules I was having issues with, it was these:

018EE000	019CAFFF	905215	RAudioDll2.dll
019CB000	01A11FFF	290815	RAudioDll1.dll
01A12000	01A4BFFF	237567	RAudioCodecv4I.dll

They're big muthers, and take up almost 1.5 MB of ram (not in slot 60 o 61, but out of every process). I'm much better off leaving them as files instead of converting them to modules, since I don't use the app all the time. But you're converting a lot of modules that are always being used my many processes to files, and that just doesn't make much sense.
[Windows Mobile] mwalt2:
How do you read the virtualmemory graph? Thanks
[Windows Mobile] Farmer Ted:
You basically look to see if any of the process slots are jacked up. If you see a process (growing from the bottom of the slot) have its memory run up to the level of the dll's (which grow downwards), then you run into out of memory errors. In my two plots, scandisk runs out of memory in the first, and just barely has enough free virtual memory to operate in the second. It uses a ton of memory, although the memory usage can be tweaked by eliminating caching (which slows the process down a ton).
[Windows Mobile] af974:
http://www.codeproject.com/KB/windows/VirtualMemory.aspx?msg=3360923

http://xdaforums.com/showthread.php?t=362333
[Windows Mobile] sc00basteve:
what about initvmmap.exe

http://forum.ppcgeeks.com/showpost.php?p=1924102&postcount=3758
[Windows Mobile] Arto:
Many thanks for the attention you accorded to my problem !

I understand better the situation, I will reversemod the permanent processes and dlls and look the results.
[Windows Mobile] Farmer Ted:
Cool! Tell me if it actually works, lol.
[Windows Mobile] Farmer Ted:
Good idea there! I've never tried that before, but will give it a shot. I see I'm not the only one who got the free Resco Photo Manager from Handango, lol. Do you think doing this actually helps?
[Windows Mobile] sc00basteve:
Memory management seems great. I got these screenshots (on my TP2) while OperaMobile10 was open and I was preparing this post. The only time I noticed it slow down was when I had Opera & RPhotoMan open and I was resizing the screenshots to 240x400 and uploading all 3 to photobucket.

But, You tell me plz. How does it look :)

First is just Manila, 2nd is also PhotoManPro, and 3rd is RescoPhot & Explorer!

I used FdcSoft TaskManager to look at the "details" of each process.

I converted almost anything I could find inside the apps I use the most (*and I could run from \Windows folder*) to module. That helped a bit.

Now, with the initvmmap (loader) reg's I can do things like run OperaMobile 10, Resco Explorer AND Resco Photo Manager at the same time without one app crashing!

Could be the 17Mb page pool and awesome 2313x builds of 6.5.x too.
[Windows Mobile] Arto:
the tp2 has 280mb it isn't?

mine has 256mb and I run opera 10 and resco explorer and facebook and palringo at the same time...

I have a 13 mb pagepool by the way...

in fact my problem is not the ram because I can run experiment with 20 mb free now and all is fluid, but before I couldn't run experiment even with 50-60 mb free, I discovered that cookie home tab was a part of the problem, that slot 0 overloading was a part too...

I reversmodded the concerned dlls, and my problem was worse, (without running any apps, just manila, experiment does'nt want launch, and htc menu crashes easily) so I re recmodded again only the big dlls (>500kb) to keep slot 0 the most free as possible like da'g advised, and now I get htc menu menu crashes when I have 6-7 net framework apps so its a lot better than before

I think the slots have to be equilibrated, only big dlls should be recmodded in OEM and SYS except the core system dlls (aygshell.dll and others like that)

What do you think Farmer Ted ?
[Windows Mobile] mwalt2:
nevermind, looked it up and the acer s200 has a 6.5 native kernal from what I could tell.
[Windows Mobile] Arto:
sorry, I did'nt precised that I have a native 6.5 kernel, acer s200 is a low cost equivalent (snapdragon 1ghz) to hd2
[Windows Mobile] seeM_ZA:
I don't think you want any modules in Slot 0 at all..

This thread has been quite informative :)
[Windows Mobile] Arto:
I'm not sure I quite understood what you said but I answer you, the slot 0 is important for wm 6.5 as it give a more optimized space for permanent dlls. the problem is that if some heavy dlls are loaded in it, we can got an out of memory or a graphic limit (htc menu crashes for example, or 3d games does'nt load) easily, even if the global free memory is big...

so we have to keep the most important dlls in slot 0, but the bigs and less important should be recmodded..
[Windows Mobile] sc00basteve:
Don't forget 6.5 kernel is special...

I have ~700 modules and none in slot 0. Never had an OOM issue on 6.5 or 6.5.3

http://xdaforums.com/showpost.php?p=4268137&postcount=2

When you create a module, you are telling Windows Mobile that you want that module to be memory-mapped, so that each time it loads, it's loading to the same, known area of ram - saving space in slot 0 - this is done on the computer-side, during 'cooking' and is the job of wmreloc, g'reloc, bepe's Platform Rebuilder, etc. Virtual allocations are aligned to a 64KB border, so if you memory map a .dll that's only 3Kb large, it's still going to eat up 64KB of memory space.
[...]
What's the take-home message about VM?

Keep Slot 0 as free as possible. WM 6.5 NK allows you to use more modules without taking up SLOT 0 space, so allows more flexibility to use modules (which are faster to load)

I can understand Recmod'ing a bunch of unneccessary or rarely-used exe's (like Solitaire & BubbleBreaker), or really small dll's (1-5Kb)... but I have 99% of my mui's as modules, almost all of the services.exe and device.exe processes as modules and I'm running great.
[Windows Mobile] Farmer Ted:
Are you sure you have a 6.5 native kernel? In my experience, it's pretty hard to fill up slots 60 and 61, and to load any modules into slot 0. Believe me, I've tried, but the most I've ever filled slot 60 is maybe 24 MB. If you're loading modules into slot 0, then 1) that's clearly where your memory issues are coming from and 2) you've got an assload of modules!!! Make sure you have the 'real 6.5 aku' box checked (if you're using EVK). Are you using a kitchen/tools that will allocate modules to slots 60 and 61?
[Windows Mobile] Arto:
yes my phone has really a real 6.5 native kernel ! the stock roms run wm 6.5, and the phone is more recent than the hd2

I use barin os kitchen and I can select wm 6.1 mode ore wm 6.5, of course I selected wm 6.5.

I don't think I have too much modules, but I have sense which is not destinated to my device, so there is maybe a porblem with that but I don't think so..Ive red that an xpera x1 user had a similar problem and his problem disapeared when he recmoded some modules..

strange, strange issue :confused::p
[Windows Mobile] Farmer Ted:
Do you have a memory map, that tells you how many modules are loaded into slots 60, 61, 0 and 1? I guess with a bigger device (with a ton of rom memory) you could cook in an assload of apps with a ton of modules.

Edit: looking at your mem_1.txt file, I think you only have 10 MB worth of modules loaded into slot 61, and none loaded into slot 60. I don't know if there are any in slot 0, but I kind of doubt it (I'm not sure which is slot 0, or if it shows up. NK.exe is slot 96-Slot base c2000000-maybe that's actually slot 0, but I don't think so). One of your biggest problems is that you have dll's overlapping heaps in your gwes.exe slot. You can see it here:

0d1b0000(0): HHHHHHHHHHHHHHHH <-- Heap:0x0c150000
0d1c0000(0): HHHHHHHHHHHHHHHH <-- Heap:0x0c150000
0d1d0000(0): HHHHHHHHHHHHHHH <-- Heap:0x0c150000
0d1e0000(0): DDDD <-- DLL: htcmenuenhance.dll + + +
0d1f0000(0): -------DDDD--- <-- DLL: cuihandler.dll + + +
0d200000(0): HHHHHHHHHHHHHHHH <-- Heap:0x0c150000
0d210000(0): HHHHHHHHHHHHHHHH <-- Heap:0x0c150000
0d220000(0): HHHHHHHHHHHHHH- <-- Heap:0x0c150000
......................................................
......................................................
0d540000(0): HHHHHHHHHHHHHHHH <-- Heap:0x0c150000
0d550000(0): HHHHH---------- <-- Heap:0x0c150000
0d5c0000(0): ----D-d- <-- DLL: htcmenuloaderdll.dll
0d680000(0): HHHHHHHHHHHHHHHH <-- Heap:0x0c150000
0d690000(0): HHHHHHHHHHHHHHHH <-- Heap:0x0c150000

Onenotesyncdevice.dll is loading way too low; it loads at about 18 MB up in each slot, which is limiting your available virtual memory for every process to 18 MB whenever it's loaded.
[Windows Mobile] Arto:
I'm looking for making a memory map with the kitchen.

waahouu, onenotesync is killing my ram? then the problem come from office mobile?
[Windows Mobile] Farmer Ted:
I've never used os builder, but EVK dumps a memory map near the end of the build log.

Those modules in gwes.exe are also really low (mainly htcmenuenhance and cuihandler). There are probably some others that are really low, too.
[Windows Mobile] Arto:
ok I will build one and give you the log

sorry because I'm french, what do you think by "low" ?

edit: here is a log about slots and modules but I don't know if its related to the xip only or to the all rom

Unfortunaly I don't have the memory maps inside the build log, I will ask in the os builder thread
[Windows Mobile] Farmer Ted:
Your memory map isn't showing any modules being allocated to slots 60/1. You need to ask the os builder guys what's wrong with your setup.
[Windows Mobile] Arto:
I found it !!

Here is the memory map and all the informations regarding build process etc
[Windows Mobile] Farmer Ted:
Just got a quick look. First, wow, that's cool. Someday I need to convert to that kitchen. Second, you've got modules in 61, but none in 60. But, you have a butt-load in slot 0. This is the problem, and it shouldn't be happening. I've never used the kitchen, so I can't tell you how to fix it.
[Windows Mobile] -=Barin=-:
Guys, read this post please http://www.mobileunderground.info/showthread.php?t=12348&p=53103#post53103
[Windows Mobile] lapy:
hello guys,

i checked processes too and using dotfred's task manager i saw that the gwes.exe process is taking always more than 32MB, usually 37...

Using standard windows task manager it takes 5.82MB

I'm using the build 23129 with gwes.exe and commctrl.dll from 23569.

can anyone advice me on a gwes.exe without this memory leak?

I also notice that the htc album slows down a bunch if other apps (also little apps) are opened, and the camera does weird things, like a bit of its interface is not loaded and it shows partly the home screen...all is gone if no other apps are opened. I have usually 38mb of free RAM after 2 days of intense use.
[Windows Mobile] sc00basteve:
Yeah, I don't know how dotfred's calculates memory usage compared to the stock taskmanager... but I get similar results.

- SYS 23134 (and now 23135) is my new favorite: new AKU5309!

- I would ask around for the best packages for your specific device cause it sounds like your having some issues with:

- DShow. My Camera, Album, and FullscreenPlayer would always issues when I tried a DShow package that wasn't compatible with my device.

- Concurrence Manager (or Shared memory registry settings)

@FarmerTed - any suggestions on my setup? I zipped the txt file.
[Windows Mobile] Farmer Ted:
It looks good to me; you could probably convert some more oem-drivers to modules, like keypad.dll and the other guys:

0b740000(0): DDD---- <-- DLL: btcestack.dll + +
0b750000(0): D---------D <-- DLL: btcepan.dll +
0b760000(0): ---d--D-- <-- DLL: btavrcsdk.dll
0b770000(0): D <-- DLL: kbdcntrl.dll
0b780000(0): DDDD <-- DLL: keypad.dll + + +

You could also convert the dummy custsat.dll to a module. I'd also try a task manager like xtask that closes applications, so garbage like the comm manager isn't always running.
[Windows Mobile] Farmer Ted:
Hey Arto, maybe this is something I just don't understand in your logs (got to look at them a little more), but what's up with this???

Deleting file 723fb954-d931-4348-b672-82a188e587b5.rgu Ok
Deleting file boot.rgu Ok
Deleting module hd.dll Ok
[COLOR="Red"]Deleting module initvmmap.exe [/COLOR] Ok
Deleting module kd.dll Ok
Deleting module mencfilt.dll Ok
Deleting module osaxst0.dll Ok
Deleting module osaxst1.dll Ok

Did you actually remove initvmmap.exe from your XIP? I think that's a real bad idea. I've removed hd.dll, mencfilt.dll and osaxst0.dll with no issues (I either removed kd.dll a long time ago and forgot, or I never had it, lol), but your issue may be removing initvmmap.exe. Is it common to delete initvmmap.exe? I've never heard of anyone doing it.
[Windows Mobile] af974:
I guess FT is right, i got this from Da_G thread:

Then you have many OOM problems because your modules are always in your virtual memory even if the program is not running.

EDIT: what about deleting Boot.rgu....is it safe to do?
[Windows Mobile] Farmer Ted:
You can delete the boot.rgu, if you have the boot.hv already compiled; EVK does that. I don't really know how OSBuilder works, so I may be reading this stuff wrong. I have a feeling that guys using 6.1 kernels delete initvmmap.exe, and maybe Arto got the tip to do so from one of them, even though he has a 6.5 kernel.
[Windows Mobile] Arto:
ok!!! Thank you guys for your replies, I dont have internet access often so I cant read the thread easily, I will cook initvmap.exe and give my feedback, its looks like its the solution!thanks again for your help.
[Windows Mobile] sc00basteve:
good stuff. Thanks!

- I do use xTask, as a dll, which is great since it embeds in Device.exe.

- Comm Manager takes like 10-15 seconds to launch but it's a little better since I Recmod'd it and removed the CommManagerStartup.lnk from the Startup folder.

Because of these few extras I was able to drop my pagepool from 17Mb to 16Mb and It's running smooth as silk (with better battery life of course!)

- The problem with keypad.dll & kbdcntrl.dll is that they are from the RhodKbdCtrl_CDMA.cab (custom keyboard config) and they don't work when converted to module.

Do you think that they need to be signed (or something) in order to be used as a module? or is it possible that they just wont work as modules?

I gotta use it (for my sanity, lol) cause it was driving me nuts not being able to Copy & Paste: Sprint TP2 has no Ctrl button.
[Windows Mobile] Farmer Ted:
Well, if they don't work as modules, they don't work as modules. I kind of doubt the signatures matter. That's weird cut-and-paste wouldn't work without the modded versions.

I ditched the comm manager a while ago. I've got xtask set up as my comm manager-clicking and dragging off the start button pops up toggles for the phone, wifi and bluetooth (as well as other stuff). If I need to get into the comm settings (pretty rare for me), I just use the stock ms wireless manager. The htc comm manager is basically just a skinned version of the MS one, with a boat-load of bloat added.
[Windows Mobile] seeM_ZA:
HTC is just MS with a bloat-load of bloat.The more I learn about Windows Mobile works (VM, RAM etc..), the more I want to move away from these HTC apps. I know you share this opinion tho :p
[Windows Mobile] sc00basteve:
True. True. But I like the HTC Notification Manager and their CommManager works really well with it.

Honestly, HTC's bloatware made me want to show my phone to other people.

I'm form the school of Juicy47: Use their software to make the device work better than their official releases. HTC-Perfection is the goal.

I recently (the past year) got into the WinMo Core to tweak my custom ROMs.

And on a side note: initvmmap.exe is pretty cool... do you know if the values HAVE to be in boot.rgu or boot.hv at build time or does initvmmap.exe check the reg on every boot.
[Windows Mobile] seeM_ZA:
I have a question of my own..

Hypothetically speaking, if no modules are in Slot 60 or 61 at the time of cooking, would WM ever insert anything into these slots? My understanding is that it will not and these slots will remain empty (and useless), which makes the idea of recmodding even sillier to me. I'd appreciate someone who has more experience to offer their opinion :)
[Windows Mobile] Farmer Ted:
Files get loaded in there, too, so any dll (like one from a cab), will get loaded into 61. I's just slower than if it's a module.
[Windows Mobile] af974:
What is the bad side leaving Bugtrap,Poutlook and other stuff from Startup?.

I noticed that Wellcome.lnk should not be removed.
[Windows Mobile] Farmer Ted:
Bugtrap's useless; it's just a debugger. Do you even have the package?

I never run poutlook at startup. I'm not sure what the point is.

You definitely need welcome.lnk. I deleted it once, and the device doesn't boot up fully.
[Hero CDMA General] e_asplundh:
Can anyone tell me the safest yet highest speed I should have my hero overclocked
[Hero CDMA General] ipfreelytech:
have you ever done overclocking on a pc? Same deal here, there is no "one size fits all" overclock. 691 is generally considered safe for all cpus and thats why the kernel in cm6 is capped at that. some hero's can do 748 all day long (like mine) others cannot even boot at 710. trial and error is how overclocking works....
[Touch Cruise General] francish10:
Bonjour a tous le monde je suis nouveau sur le site.

Voila j'ai acheté un htc cruise P3650 et j'ai un problème avec le son j'ai lu sur le site que le GSM était bridé en France et que avec le nouveau Rom il n'ai plus possible de le débridé le son.

voila pouvez vous me dire quelle mettre dans le GSM pour le débridé ou si il y a radio pour cela.

voici le que j'ai

Version du Rom:3.13.406.0 FR

Date du Rom:08/22/2008

Version Radio:1.59.42.15

Version du port:25.85.30.07 H

Merci pour vote réponse

Bien a vous

Francish10
[Captivate Android Development] nbs11:
De-Captivated

I created this root and unlock combo modeled after the old iPhone jailbreaks which allowed you to unlock. Technically speaking this is not one click, but it is the single fastest way to do both. Right now it is only Mac, but it could come to PC eventually if I have time and find a tester. Remember, that if this application works I would really appreciate it if you donate.

It does the following:

Roots

Unlocks

Installs android-wifi-tether

Installs Market enabler

Sideloads

Required:

Mac

Samsung Captivate

Other carrier SIM card

How to use:

Just download the file from the link below or in the attachments:

Newest version

Now mount the DMG file and you should see this:

Drag the folder to the hard drive picture BUT NOTHING ELSE. Once the folder finishes copying just double click on the icon with the lock and run the program (it opens in a terminal window). It is VERY self explanatory from there and it includes step by step directions. I hope this program helps.

If you tried unlocking too many times:

It will then ask you for another code. Enter the unfreeze code that it gives you on the very last screen of the program. Enter that.

Donate:

This program took a long time to make and I would really appreciate it if you donate. Your donations will help me keep this program up-to-date. Currently I only accept PayPal donations at:

http://bit.ly/cplmLk

Credits:

NBS11 for this program and the mac unlock source

DaGentooBoy for the unlock meathod

Unfreeze code finder by RazvanG

Bowsa2511 for the code to extract unlock

Blackjackboy for root method
[Captivate Android Development] nbs11:
reserved if I need it later
[Captivate Android Development] Bowsa2511:
Another great post Nbs! You certainly are a team player :)

I don't have access to a OS X system to test this, but when you have a Windows solution set-up, let me know for testing.
[Captivate Android Development] Clienterror:
I don't get it, when I try to load this on my PC it doesn't do anything? J/k ;-P looks cool man, I hope it works as great as it looks! (I'm sure it is)
[Captivate Android Development] nbs11:
Haha I thought you were serious for a minute. Yeah. Well for now its Mac only because PC's do not really handle shell scripts well. I will probably convert it later with the help of someone else but until then its mac only (and if you have linux you can get it to work if u change a few things)
[Captivate Android Development] nbs11:
I have added sideloading functionality to the app.
[Captivate Android Development] designgears:
Platform independent solution!!

http://xdaforums.com/showthread.php?t=751934

;)
[Captivate Android Development] nbs11:
It doesn't unlock....
[Captivate Android Development] Bowsa2511:
Sorry, I just got home from work.

I'm now looking at the files you sent me, you talking about the files inside the other folder (not the mac os one) right?
[Captivate Android Development] nbs11:
I am assuming that is it. If there is a weird folder with basically nothing in it that is probably a folder that Mac OSX adds to everything that is hidden but shows up on windows.
[Captivate Android Development] Bowsa2511:
What are the paths you want incorporated?
[Captivate Android Development] nbs11:
I am confused by what that means? I just want the paths converted to the windows equivlent (instead of / c:// etc.)
[Captivate Android Development] Bowsa2511:
Oh, ok :P lol
[Android Software Development] ratrider:
I'm trying to listen on a port using ServerSocket on an Android device. I want to be able to connect to this port over WiFi using a computer on the same network.

I get no exception when binding it to a port, however when I check netstat it says:

Proto Recv-Q Send-Q Local Address Foreign Address State

tcp 0 0 (null):4040 (null):* LISTEN

I've tried countless ways of binding it to localhost, 0.0.0.0, the WiFi LAN IP address of the device with SocketInetAddress and InetAddress.getByName. Nothing seems to work.

When I try to connect to the port from a computer in the same WiFi (I've tried both netcat and Java's Socket.connect()), all I can see in Wireshark is an ARP request:

Who has [phone's LAN address]? Tell [computer LAN address].

This request repeat itself until timed out.

I've tried the reverse way, by setting the ServerSocket on the computer and connecting to that port from the phone, that works very well.

My testing phone is an Samsung Spica i5700 with a custom ROM.

Any ideas?