|
Linux Forum Index » Linux Miscellaneous Topics 2 » Why my program need so much virtual memory?...
Page 1 of 1
|
| Author |
Message |
| Bill David... |
Posted: Wed Oct 08, 2008 12:19 am |
|
|
|
Guest
|
The following information is gotten from the output of free -m:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
32367 nobody 25 0 1619m 17m 5552 S 0.0 0.9 0:00.15 xxx
I used (claimed?) 1619m virtual memory. About 100 times than RES
(17m).
While another program need only 106m, only several times than
RES(14m):
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1756 nobody 25 0 106m 14m 5808 S 0.0 0.7 0:00.16 yyy
And
How is it determined?
Can I control it in in my program?
But I am sure I have not directly claimed so much virtual memory. |
|
|
| Back to top |
|
| Grant... |
Posted: Wed Oct 08, 2008 5:51 am |
|
|
|
Guest
|
On Wed, 8 Oct 2008 03:19:19 -0700 (PDT), Bill David <billdavidcn at (no spam) gmail.com> wrote:
Quote: The following information is gotten from the output of free -m:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
32367 nobody 25 0 1619m 17m 5552 S 0.0 0.9 0:00.15 xxx
I used (claimed?) 1619m virtual memory. About 100 times than RES
(17m).
While another program need only 106m, only several times than
RES(14m):
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1756 nobody 25 0 106m 14m 5808 S 0.0 0.7 0:00.16 yyy
And
How is it determined?
Can I control it in in my program?
But I am sure I have not directly claimed so much virtual memory.
Paid support is over there ---->
--
http://bugsplatter.id.au/ |
|
|
| Back to top |
|
| The Natural Philosopher... |
Posted: Wed Oct 08, 2008 8:12 am |
|
|
|
Guest
|
Grant wrote:
Quote: On Wed, 8 Oct 2008 03:19:19 -0700 (PDT), Bill David <billdavidcn at (no spam) gmail.com> wrote:
The following information is gotten from the output of free -m:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
32367 nobody 25 0 1619m 17m 5552 S 0.0 0.9 0:00.15 xxx
I used (claimed?) 1619m virtual memory. About 100 times than RES
(17m).
While another program need only 106m, only several times than
RES(14m):
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1756 nobody 25 0 106m 14m 5808 S 0.0 0.7 0:00.16 yyy
And
How is it determined?
Can I control it in in my program?
But I am sure I have not directly claimed so much virtual memory.
Paid support is over there ----
Virtual memory is just what space the program and probably the libraries
it has compiled in, have malloc()ed as far as I know. If its a C program
there will also be a considerable amount of stack reserve I THINK.
It doesn't really matter, as most of it is never used. |
|
|
| Back to top |
|
| |