|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
Re: different memory estimatesOn Jun 28, 2009, at 11:12, Liviu Andronic <landronimirc@...>
wrote: > Dear all, > Today I've noticed that xfce4-systemload and xfce4-taskmanager report > different memory consumption estimations. Although the former > currently reports 348 MB, the latter will report 333 MB with option > "show memory used by cache as free" set, and 465 MB with the option > unset. > Which one should be believed? Thank you Hmm, that's a little odd. Try looking at /proc/meminfo. You'll have to do some math to subtract out buffers and cache from the used memory figure, but that should be accurate. I'm not sure offhand where either plugin gets its information though. The source should tell you. -brian Sent from my iPod _______________________________________________ Xfce mailing list Xfce@... http://foo-projects.org/mailman/listinfo/xfce http://www.xfce.org |
|
|
Re: different memory estimatesHello,
On Sun, Jun 28, 2009 at 10:54 PM, Brian J. Tarricone<brian@...> wrote: > Hmm, that's a little odd. Try looking at /proc/meminfo. You'll have to do > some math to subtract out buffers and cache from the used memory figure, but > I did the math. At the moment when I opened /proc/meminfo, taskmanager reported 304 MB and systemload 312 MB. The proc file reported this: MemTotal: 482784 kB MemFree: 11408 kB Buffers: 7932 kB Cached: 151776 kB (482784-7932-151776)/1024=315 MB Unless I'm wrong in math, I would suspect systemload is more accurate. Liviu _______________________________________________ Xfce mailing list Xfce@... http://foo-projects.org/mailman/listinfo/xfce http://www.xfce.org |
|
|
Re: different memory estimatesOn Sun, Jun 28, 2009 at 11:38 PM, Liviu Andronic<landronimirc@...> wrote:
> Hello, > > On Sun, Jun 28, 2009 at 10:54 PM, Brian J. Tarricone<brian@...> wrote: >> Hmm, that's a little odd. Try looking at /proc/meminfo. You'll have to do >> some math to subtract out buffers and cache from the used memory figure, but >> > I did the math. At the moment when I opened /proc/meminfo, taskmanager > reported 304 MB and systemload 312 MB. The proc file reported this: > MemTotal: 482784 kB > MemFree: 11408 kB > Buffers: 7932 kB > Cached: 151776 kB > > (482784-7932-151776)/1024=315 MB > > Unless I'm wrong in math, I would suspect systemload is more accurate. > Liviu Part of this could stem through different definitions of kB and MB. Look up kibibyte and mibibyte. Basically, taskmanager could be reporting 304 * 1024^2 bytes, while systemload reports 312 * 1000^2 bytes. I don't know whether /proc/meminfo defines a kB as 1024 bytes or 1000 bytes. // Alexander _______________________________________________ Xfce mailing list Xfce@... http://foo-projects.org/mailman/listinfo/xfce http://www.xfce.org |
|
|
Re: different memory estimatesOn 2009/06/28 14:38, Liviu Andronic wrote:
> Hello, > > On Sun, Jun 28, 2009 at 10:54 PM, Brian J. Tarricone<brian@...> wrote: >> Hmm, that's a little odd. Try looking at /proc/meminfo. You'll have to do >> some math to subtract out buffers and cache from the used memory figure, but >> > I did the math. At the moment when I opened /proc/meminfo, taskmanager > reported 304 MB and systemload 312 MB. The proc file reported this: > MemTotal: 482784 kB > MemFree: 11408 kB > Buffers: 7932 kB > Cached: 151776 kB > > (482784-7932-151776)/1024=315 MB > > Unless I'm wrong in math, I would suspect systemload is more accurate. Hmm, seems to me that systemload is pretty inaccurate too. See (line 98): http://svn.xfce.org/index.cgi/goodies/xfce4-systemload-plugin/trunk/panel-plugin/memswap.c?view=markup It looks like it just considers Cached and ignores Buffers -- which is odd for your particular example since that should give you an ~8MB difference from reality, and yet you only see a ~3MB difference. Then we have taskmanager which appears to do the right thing (line 135): http://svn.xfce.org/index.cgi/goodies/xfce4-taskmanager/trunk/src/functions.c?view=markup ... so, I'm not sure why taskmanager is less accurate for you. Perhaps just time delay of measurements in your case. -brian _______________________________________________ Xfce mailing list Xfce@... http://foo-projects.org/mailman/listinfo/xfce http://www.xfce.org |
| Free embeddable forum powered by Nabble | Forum Help |