Re: Program memory usage in Windows CE 5.0

Write a program that copies files periodically.
Check the remote tools to see if memory usage keeps increasing over time.
This also excludes explorer from your test.

If the mem-usage increase is just limited and does not keep increasing ,
there is no problem. Maybe youré looking for a problem that does not exist.


"embedinfo" wrote:

On Aug 11, 7:25 pm, embedinfo <embedi...@xxxxxxxxx> wrote:
On Aug 11, 5:44 am, "Michael Salamone" <mikesa#at#entrek#dot#com>

Does the memory usage grow with each operation or just the first one?

What file system do you have mounted as root? Is it object store
(RAM-backed) or flash or ?

Michael Salamone, eMVP
Entrek Software,

"embedinfo" <embedi...@xxxxxxxxx> wrote in message


Hi there,

I have a question on Program memory usage in Windows CE 5.0. When I
copy a file from one location to another on the device I see incerase
in program memory usage. (For example from MyDocuments to Desktop).
But if I delete the same file from desktop and recycle bin, I don't
get back the memory allotted during the copy. Is this memory leak in
Windows CE 5.0 filesystem? If not why Windows CE behaves like this?
Who uses that memory? How to avoid this happening?

Any inputs will be helpful!

Thanks- Hide quoted text -

- Show quoted text -

Yes it grows for every operation (some times it increases by 12KB,
next time if you copy the same file it increases by 4 KB. The
increment is random), but it doesn't grow by file size. My platform
has flash memory and I have mounted flash disk as root and using hive
and ROM filesystem. Is there anyway I can avoid it?
This is critical issue. Any inputs will be really helpful!

Thanks- Hide quoted text -

- Show quoted text -


I am using FATFS. Similar behaviour is seen on Emulator platform as
well. Is this memory leak in filesystem? Some times I have seen that
usage of program memory increment stops also after copying the same
file several times (may be 3-4 times). But if I copy some other file
and delete again it increses.

I have set FRAMPERCENT= 128KB (minimum).

Steps to reproduce:
1) Build Emulator platform.
2) Check original Program memory usage using Control Panel-->System
2) Copy some file from Windows directory to desktop (copy a file more
than 10K size)
3) Observe the change in INUSE program memory.
4) delete the file. File will be moved to recycle bin. and observe the
memory status.
5) Delete the file from recycle bin as well and check the memory
status. It will not come to original state (I mean what you observe in
step 2)

Note: While I test this, I dont do any other operation.



Relevant Pages

  • Re: Adjusting alogarithm
    ... that way It will use less memory. ... To confirm that memory usage is not the issue, ... In the Application tab, click on Excel, then right-click and click on GoTo. ... In the Process tab, be sure that you see columns labeled Mem Usage, Peak Mem Usage and VM Size. ...
  • How to find out how many other processes share VM with $PID?
    ... I was a bit frustrated by bad quality of memory usage info ... I know how to detect and correctly account for threads ...
  • Re: Vista runs out of physical memory when working with files > 1GB - memory management issue?
    ... server stopped responding while I was monitoring this memory usage issue I ... allocations are made the the request goes to backend allocator and since ...
  • Re: store.exe memory usage
    ... Then I do have some iPhone users and then of course the ... restart following that seems to have helped a bit, ... usage and optimizing memory in Exchange 2003.; ... restart here is what I observe about store.exe's memory usage (task ...
  • Re: Backup fails with volsnap error
    ... memory usage is way over the top. ... In fact, if you get Trend under control, you'll probably see Exchange grab ... The Trend requirments say 512MB of RAM for the system.... ... I will talk to Trend about the memory usage. ...