View previous topic :: View next topic |
Author |
Message |
queen Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/2058161202535b91a0001a7.jpg)
Joined: 19 Jul 2005 Posts: 1642
|
Posted: Sat Aug 05, 2006 6:24 pm Post subject: memory usage question |
|
|
I upgraded my memory from 512mb (333mhz) to 1gb (400mhz).
Before i upgraded i checked memory usage of the following command: Code: | mencoder -ovc raw -oac pcm -o /dev/null myfilm.avi | . Since it's a heavy task cpu usage was about 95. It used 490mb memory. After upgrading i got about 985mb memory usage for the same command.
Another weird thing is that now i have only kopete opened, few shells and browser and i have 980mb usage. cpu usage 0.3%
Why is that? How can i repair it? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bLUEbYTE84 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/183171740846ef8aab80335.jpg)
Joined: 21 Jul 2006 Posts: 566 Location: universe.tar.gz, src/earth.h, struct homo_sapiens_table
|
Posted: Sat Aug 05, 2006 6:38 pm Post subject: |
|
|
No need to worry - the free memory is filled up with file buffers and stuff. When the programs request more memory, it will be allocated as usual. So, you shouldn't take 'free memory' into consideration. This memory, which is used for buffers, although not being shown as free memory, is effectively free for apllications' use.
Your application, taking 900+ MBs of memory, is I think due to the way it's programmed, i.e it hogs all the memory it can. Or it might be a memoy leak/bad proramming in application code. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
queen Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/2058161202535b91a0001a7.jpg)
Joined: 19 Jul 2005 Posts: 1642
|
Posted: Sat Aug 05, 2006 7:20 pm Post subject: |
|
|
bLUEbYTE84 wrote: | No need to worry - the free memory is filled up with file buffers and stuff. When the programs request more memory, it will be allocated as usual. So, you shouldn't take 'free memory' into consideration. This memory, which is used for buffers, although not being shown as free memory, is effectively free for apllications' use.
Your application, taking 900+ MBs of memory, is I think due to the way it's programmed, i.e it hogs all the memory it can. Or it might be a memoy leak/bad proramming in application code. |
Thank you.
The command checks integrity of an avi file and decodes both audio and video. Indeed, it can be a memory leak. Will ask the developers of mplayer. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|