Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
tops shows 0k for buffers and shared?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Macros73
n00b
n00b


Joined: 04 Jun 2002
Posts: 25

PostPosted: Tue Jun 04, 2002 8:07 pm    Post subject: tops shows 0k for buffers and shared? Reply with quote

The 'top' command displays the following output, which doesn't make much sense to me.

Shared should not list 0k, nor should buff, should it?

Any ideas? This is a fresh install of Gentoo that I created over the weekend from the stage3 tarball.

mem: 256044K av, 195908K used, 60136K free, 0K shrd, 0K buff
Swap: 530136K av, 0K used, 530136K free 83464K cached
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Tue Jun 04, 2002 11:21 pm    Post subject: Reply with quote

My shared is also 0k my buffers is used.

cat /proc/meminfo gives:
Quote:
total: used: free: shared: buffers: cached:
Mem: 261660672 255176704 6483968 0 20058112 178876416
Swap: 518152192 48799744 469352448
MemTotal: 255528 kB
MemFree: 6332 kB
MemShared: 0 kB
Buffers: 19588 kB
Cached: 158848 kB
SwapCached: 15836 kB
Active: 76360 kB
Inactive: 146584 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 255528 kB
LowFree: 6332 kB
SwapTotal: 506008 kB
SwapFree: 458352 kB


Sry can't help,.lX
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
Utoxin
Guru
Guru


Joined: 19 Apr 2002
Posts: 411
Location: Springville, UT

PostPosted: Tue Jun 04, 2002 11:27 pm    Post subject: Reply with quote

It's perfectly reasonable for those to be empty. It just means that the kernel does'n believe anything needed buffered. (I forget whether buffer is for read or write.)

And my system never has anything in shared. Not sure why, but it doesn't. So you're fine.
Back to top
View user's profile Send private message
Macros73
n00b
n00b


Joined: 04 Jun 2002
Posts: 25

PostPosted: Wed Jun 05, 2002 12:34 am    Post subject: Follow-up Reply with quote

It does concern me that MemShared is 0kB. Isn't Linux (and UNIX in general) supposed to share portions of common code between applications, which is, I had thought, reflected in the MemShared field? IE, it loads only one copy of that code into memory and shares it between the various apps?

A Buffers of 0kB also worries me, but that might be due to my using XFS on my / filesystem. Perhaps buffers used by XFS aren't being reported back to the OS as expected.

cat /proc/meminfo

total: used: free: shared: buffers: cached:
Mem: 262189056 238166016 24023040 0 0 88571904
Swap: 542859264 0 542859264
MemTotal: 256044 kB
MemFree: 23460 kB
MemShared: 0 kB
Buffers: 0 kB
Cached: 86496 kB
SwapCached: 0 kB
Active: 137940 kB
Inact_dirty: 18260 kB
Inact_clean: 46400 kB
Inact_target: 40520 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 256044 kB
LowFree: 23460 kB
SwapTotal: 530136 kB
SwapFree: 530136 kB
Back to top
View user's profile Send private message
Macros73
n00b
n00b


Joined: 04 Jun 2002
Posts: 25

PostPosted: Wed Jun 05, 2002 12:40 am    Post subject: The Riddle is Solved Reply with quote

According to the Linux FAQ, processes in 2.4 do indeed still share memory.

However, due to changes in the virtual memory layer, it is too costly to tally up all that shared memory. Therefore, in order not to break userland tools, MemShared in /proc/info was set to 0kB.

Anyone know of a tool that will go through and pull out such stats, or is that information completely unavailable under Linux kernel 2.4?
Back to top
View user's profile Send private message
Macros73
n00b
n00b


Joined: 04 Jun 2002
Posts: 25

PostPosted: Wed Jun 05, 2002 12:44 am    Post subject: ipcs Reply with quote

ipcs appears to provide some stats on shared memory usage..guess I'll work from there. Additional tips more than welcome.
Back to top
View user's profile Send private message
Utoxin
Guru
Guru


Joined: 19 Apr 2002
Posts: 411
Location: Springville, UT

PostPosted: Wed Jun 05, 2002 12:45 am    Post subject: Reply with quote

Hmmmm. I'm running XFS as well, so maybe you're right about the buffer thing.

*blinks as he absently checks top*

Never mind. My buffer is in use right now. Not much, but it is. (Just over 1 meg).

And the shared memory thing makes sense. If you look at the process list in top, it does list memory as shared for most processes.
Back to top
View user's profile Send private message
Macros73
n00b
n00b


Joined: 04 Jun 2002
Posts: 25

PostPosted: Wed Jun 05, 2002 1:31 pm    Post subject: Reply with quote

Hmm. My buffers are still not in use and the system has been up for a few days. Any ideas? How can I check the configuration settings for disk buffers?
Back to top
View user's profile Send private message
Utoxin
Guru
Guru


Joined: 19 Apr 2002
Posts: 411
Location: Springville, UT

PostPosted: Wed Jun 05, 2002 6:18 pm    Post subject: Reply with quote

As far as I know, there is no configuration. It's handled automagically by the kernel. I /do/ remember that mine were empty for quite some time.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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