This link has been bookmarked by 122 people . It was first bookmarked on 02 Mar 2006, by Mike.
-
15 Jun 17
-
09 Jan 14
-
VSZ RS
-
-
14 Nov 13
-
12 Jan 12
-
21 Sep 11
-
05 Sep 11
-
What it is really doing is showing how much real memory each process would take up if it were the only process running
-
they simply report how much memory a process uses, regardless of whether that memory is shared with other processes as well.
-
One important thing to note about the output is that each shared library is listed twice; once for its code segment and once for its data segment
-
If you run KDE for your desktop, but mostly use Gnome applications, then you are paying a large price for a lot of redundant (but different) shared libraries
-
Shared libraries only share backing store if the code can be run without modification - i.e., it was compiled as position-independent code
-
-
19 Aug 11
-
17 Aug 11
-
09 Jun 11
-
wo of the possible outputs are VSZ and RSS, which stand for "virtual set size" and "resident set size", which are commonly used by geeks around the world to see how much memory processes are taking up.
-
-
02 Dec 10
-
29 Oct 10
Orsa MundiThis entry is for those people who have ever wondered, "Why the hell is a simple KDE text editor taking up 25 megabytes of memory?" Many people are led to believe that many Linux applications, especially KDE or Gnome programs, are "bloated" based solely upon what tools like ps report. While this may or may not be true, depending on the program, it is not generally true -- many programs are much more memory efficient than they seem.
-
20 Sep 10
Vitaly UnknownEnough talk; let's see what the situation is with that "huge" KEdit process. To see what KEdit's memory looks like, we'll use the pmap program (with the -d flag):
-
01 Sep 10
-
11 Aug 10
-
05 Jul 10
-
23 Feb 10
Koteo Oteoat the bottom of the output. This is what can be considered the incremental cost of th
-
20 Dec 09
-
11 Sep 09
-
17 Jul 09
-
07 May 09
-
22 Apr 09
-
28 Mar 09
-
27 Mar 09
Alvaro Chandiaapproach; neither number is an accurate picture of what the memory cost of running KEdit is.
-
11 Feb 09
-
VSZ and RSS, which stand for "virtual set size" and "resident set size"
-
either number is an accurate picture of what the memory cost
-
Due to this sharing, Linux is able to use a great trick: it will load a single copy of the shared libraries into memory and use that one copy for every program that references it.
-
"writeable/private" total,
-
e cost to run this instance
-
-
26 Nov 08
-
07 Oct 08
-
17 Sep 08
-
06 Jul 08
-
14 Apr 08
-
17 Feb 08
-
12 Dec 07
-
13 Oct 07
-
22 Aug 07
-
11 Jul 07
-
21 Jun 07
-
13 Jun 07
-
11 Apr 07
-
29 Mar 07
-
24 Mar 07
-
19 Mar 07
-
What it is really doing is showing how much real memory each process would take up if it were the only process running.
-
Linux is able to use a great trick: it will load a single copy of the shared libraries into memory and use that one copy for every program that references it.
For better or worse, many tools don't care very much about this very common trick; they simply report how much memory a process uses, regardless of whether that memory is shared with other processes as well. -
we'll use the pmap program (with the -d flag):
-
especially true when you deal with programs that create a lot of identical children processes, like Apache. ps might report that each Apache process uses 10 megabytes of memory, when the reality might be that the marginal cost of each Apache process is 1 megabyte of memory
-
A well-behaved app can still end up eating many, many MB of memory that it isn't actually using.
For example, say the app need to make a number of large allocations for some temporary working space for some operation. It also needs to allocate some book keeping information (undo history, for example) and other bits of info to store/utilize the computed data.
When allocations are made, the heap grows. However, the heap can only shrink by truncation. This is, the program can only release memory back to the OS by shrinking the heap, not by cutting it into pieces. So if the app makes many allocations, and frees only some (or even most) of them, its heap may end up looking like:
X: free memory
U: used memory
UUUXXXXXXXXXXXXU
That's four pages of used memory and 12 pages of unused memory that can't be freed. -
If you run KDE for your desktop, but mostly use Gnome applications, then you are paying a large price for a lot of redundant (but different) shared libraries. By sticking to just KDE or just Gnome apps as much as possible, you reduce your overall memory usage due to the reduced marginal memory cost of running new KDE or Gnome applications, which allows Linux to use more memory for other interesting things (like the file cache, which speeds up file accesses immensely).
-
-
07 Mar 07
-
18 Jan 07
-
15 Jan 07
-
24 Nov 06
-
01 Aug 06
-
30 Jul 06
jimohalloranExcellent blog post describing why the memory usage numbers reported by common system utilities such as ps and top are somewhat misleading.
-
14 Jul 06
-
08 Jul 06
-
25 Jun 06
-
15 Apr 06
-
02 Apr 06
-
14 Feb 06
viniciusjlThis entry is for those people who have ever wondered, "Why the hell is a simple KDE text editor taking up 25 megabytes of memory?" Many people are led to believe that many Linux applications, especially KDE or Gnome programs, are "bloated" based solely u
-
10 Feb 06
jason mMaybe this is a valid answer to Gentoo dimwits that like *box window managers because they have nice ps output.
-
09 Feb 06
-
08 Feb 06
-
07 Feb 06
-
06 Feb 06
Page Comments
Enough talk; let's see what the situation is with that "huge" KEdit process. To see what KEdit's memory looks like, we'll use the pmap program (with the -d flag):
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.