Re: "ps -o %mem" and free memory in Linux

2020-10-02 Thread Fabrice BAUZAC-STEHLY
Victor Sudakov writes: > I summed up with awk the values of %mem, which are supposed to be "ratio > of the process's resident set size to the physical memory", correct? > > In my understanding, the value of %mem should indicate how much physical > memory is spent on the "individual" part of the

Re: "ps -o %mem" and free memory in Linux

2020-09-29 Thread Victor Sudakov
to...@tuxteam.de wrote: > > > Those are kind of virtual things, as far as I understand. If not %mem, then > > what `ps` parameter can show me how many php-fpm workers I can safely start > > before RAM is exhausted? > > This is a seemingly easy question with a surprisingly difficult answer. > > I

Re: "ps -o %mem" and free memory in Linux

2020-09-29 Thread Victor Sudakov
Klaus Singvogel wrote: > Victor Sudakov wrote: > > > Perhaps because the php-fpm workers were forked from the same parent > > > and so a lot of theie 'physical' RAM is actually the same RAM as each > > > other, because it's not been modified? > > > > I see your point, but ps(1) talks about real ph

Re: "ps -o %mem" and free memory in Linux

2020-09-29 Thread Klaus Singvogel
Victor Sudakov wrote: > > Perhaps because the php-fpm workers were forked from the same parent > > and so a lot of theie 'physical' RAM is actually the same RAM as each > > other, because it's not been modified? > > I see your point, but ps(1) talks about real physical RAM: > > %mem%MEM

Re: "ps -o %mem" and free memory in Linux

2020-09-29 Thread tomas
On Tue, Sep 29, 2020 at 10:19:17PM +0700, Victor Sudakov wrote: [...] > Those are kind of virtual things, as far as I understand. If not %mem, then > what `ps` parameter can show me how many php-fpm workers I can safely start > before RAM is exhausted? This is a seemingly easy question with a su

Re: "ps -o %mem" and free memory in Linux

2020-09-29 Thread Victor Sudakov
to...@tuxteam.de wrote: > On Tue, Sep 29, 2020 at 10:24:35AM +0700, Victor Sudakov wrote: > > Dear Colleagues, > > > > Could you please clarify for me how the following is possible. `ps` shows > > that the php-fpm workers have occupied 62% of physical memory, while > > `free` shows that only 1.3Gi

Re: "ps -o %mem" and free memory in Linux

2020-09-29 Thread Victor Sudakov
Tixy wrote: > > > > Could you please clarify for me how the following is possible. `ps` shows > > that the php-fpm workers have occupied 62% of physical memory, while > > `free` shows that only 1.3Gi (which is 17% of total RAM) is used: > > > > $ ps axww -o cmd,%mem |awk '/php-fpm/{sum+=$NF}END{p

Re: "ps -o %mem" and free memory in Linux

2020-09-29 Thread tomas
On Tue, Sep 29, 2020 at 10:24:35AM +0700, Victor Sudakov wrote: > Dear Colleagues, > > Could you please clarify for me how the following is possible. `ps` shows > that the php-fpm workers have occupied 62% of physical memory, while > `free` shows that only 1.3Gi (which is 17% of total RAM) is used

Re: "ps -o %mem" and free memory in Linux

2020-09-29 Thread Tixy
On Tue, 2020-09-29 at 10:24 +0700, Victor Sudakov wrote: > Dear Colleagues, > > Could you please clarify for me how the following is possible. `ps` shows > that the php-fpm workers have occupied 62% of physical memory, while > `free` shows that only 1.3Gi (which is 17% of total RAM) is used: > >

"ps -o %mem" and free memory in Linux

2020-09-28 Thread Victor Sudakov
Dear Colleagues, Could you please clarify for me how the following is possible. `ps` shows that the php-fpm workers have occupied 62% of physical memory, while `free` shows that only 1.3Gi (which is 17% of total RAM) is used: $ ps axww -o cmd,%mem |awk '/php-fpm/{sum+=$NF}END{print sum}' 62.1 $ f

swap filled, but still much free memory - Slab issue

2019-10-29 Thread Vincent Lefevre
My Debian 10 (buster) server swaps (it became indeed very slow) while there is still much free memory: joooj:~> free totalusedfree shared buff/cache available Mem: 489260 2162527704 24 265304 257188 Swap:360

Re: Free Memory and Tasks

2006-01-22 Thread David E. Fox
On Thu, 12 Jan 2006 21:09:13 +0100 Marco <[EMAIL PROTECTED]> wrote: > this is my memory statistics: > 1295184k total, 664740k used, 630444k free,85144k buffers > and every day my free memory decrease. Normally, this is a good thing, since "free" memory is unuse

Re: Free Memory and Tasks

2006-01-12 Thread Marco
Karl O. Pinc ha scritto: On 01/11/2006 03:30:07 PM, Marco wrote: Every day my free memory decrease and I don't understand why... BTW, you want your free memory to decrease becase memory is no good unless it's used. If it's not used for anything else the OS uses it for dis

Re: Free Memory and Tasks

2006-01-11 Thread Karl O. Pinc
On 01/11/2006 03:30:07 PM, Marco wrote: Every day my free memory decrease and I don't understand why... BTW, you want your free memory to decrease becase memory is no good unless it's used. If it's not used for anything else the OS uses it for disk buffers. See also vmstat

Re: Free Memory and Tasks

2006-01-11 Thread Marco
Joris Huizer ha scritto: Marco wrote: Hi all, How to check the memory used from a task? With "top" I look only total memory, free memory and used memory. Every day my free memory decrease and I don't understand why... Help :-( Thanks Marco Top should tell you the m

Re: Free Memory and Tasks

2006-01-11 Thread Oliver Lupton
On Wed, 11 Jan 2006 22:50:07 +0100 Marco <[EMAIL PROTECTED]> wrote: > Joris Huizer ha scritto: > > Marco wrote: > >> Hi all, > >> How to check the memory used from a task? > >> > >> With "top" I look only total memory, free memory and u

Re: Free Memory and Tasks

2006-01-11 Thread Marco
Joris Huizer ha scritto: Marco wrote: Hi all, How to check the memory used from a task? With "top" I look only total memory, free memory and used memory. Every day my free memory decrease and I don't understand why... Help :-( Thanks Marco Top should tell you the m

Re: Free Memory and Tasks

2006-01-11 Thread Joris Huizer
Marco wrote: Hi all, How to check the memory used from a task? With "top" I look only total memory, free memory and used memory. Every day my free memory decrease and I don't understand why... Help :-( Thanks Marco Top should tell you the meemory per task - start t

Free Memory and Tasks

2006-01-11 Thread Marco
Hi all, How to check the memory used from a task? With "top" I look only total memory, free memory and used memory. Every day my free memory decrease and I don't understand why... Help :-( Thanks Marco -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "u

Re: free memory

2001-01-22 Thread D-Man
On Sun, Jan 21, 2001 at 11:27:23AM -0500, Michael P. Soulier wrote: | | Right. Just seems funny to not include that somewhere. I can get the total | from here: | | [EMAIL PROTECTED] msoulier]$ dmesg | grep RAM | RAM disk driver initialized: 16 RAM disks of 4096K size If you look at some of

Re: free memory

2001-01-21 Thread Michael P. Soulier
On Sun, Jan 21, 2001 at 05:46:28PM +0100, Hans Marcus Kruger wrote: > On Sunday 21 January 2001 17:27, Michael P. Soulier wrote: > > but the size of /proc/kcore should be exaclty as big as your memory > ls -l /proc/kcore Yup, that looks good. Thanks. Mike -- Michael P. Soulier <[EMAIL

Re: free memory

2001-01-21 Thread Hans Marcus Kruger
On Sunday 21 January 2001 17:27, Michael P. Soulier wrote: but the size of /proc/kcore should be exaclty as big as your memory ls -l /proc/kcore hmk > > Right. Just seems funny to not include that somewhere. I can get the > total from here: > > [EMAIL PROTECTED] msoulier]$ dmesg | grep RAM >

Re: free memory

2001-01-21 Thread Michael P. Soulier
Right. Just seems funny to not include that somewhere. I can get the total from here: [EMAIL PROTECTED] msoulier]$ dmesg | grep RAM RAM disk driver initialized: 16 RAM disks of 4096K size But I just would have figured that total would mean total. ;-) No biggy. Mike On Sun, Jan 21,

Re: free memory

2001-01-21 Thread Diego Biurrun
I think the memory the kernel occupies is not counted against the total, since it is not available to any other program. So your total memory is physical memory - kernel memory usage = total available memory Diego Biurrun On Sun, Jan 21, 2001 at 10:44:02AM -0500, Michael P. Soulier wrote: >

free memory

2001-01-21 Thread Michael P. Soulier
Hey guys. If I do a free on my gateway, I get: [EMAIL PROTECTED] msoulier]$ free total used free sharedbuffers cached Mem: 14308 13680628 1468 2428 7068 -/+ buffers/cache: 4184 10124 Swap:96764