I'm wondering why nscd seems to have the largest size of any system program running on my system? It has a listed size of 10706K. I look at the functionality and my configs: It's caching no hosts (turned off as recommended), and I've lowered the passwd and group caching (not so many users nor groups needed to be cached in my setup, I believe) as such: enable-cache passwd yes positive-time-to-live passwd 600 negative-time-to-live passwd 20 suggested-size passwd 37 check-files passwd yes enable-cache group yes positive-time-to-live group 3600 negative-time-to-live group 15 suggested-size group 53 check-files group yes --- I was "trying" to decrease the run-time footprint of this program. I believe that caching some passwd and group entries can speed overall performance, but um...does it have to take so much memory? I mean takes ~10Meg to cache 37 passwd entries, 53 group entries and their access routines? Is it "reasonable" to expect that a program that has to manage 2 files: -rw-r--r-- 1 shadow 1.6K 2004-11-03 19:11 /etc/group -rw-r--r-- 1 root 4.6K 2004-10-17 15:11 /etc/passwd with about 6.2K of data to require a 10M run-size footprint? If this isn't the correct place for this, could someone point me where to ask this question? Thanks! Linda
no NIS running Looked at different format, ps v -e, shows TRS,DRS,RSS %MEM -- nscd still seems to look like the DRS (data resident size?) is high (42M) for what it needs to cache. But I see other programs using more %MEM (expected: squid, spamd - 2.7, 2.2%), but nothing else using more than 1%. I only see ~150M memory in buffers, ... only 29M free on a 1G sys, ah! vmstat shows 582M in cache. That's where most of it is... Could someone remind me, cache is used for filesystem caching (right?), but then buffers are used for? My fogged brain...sigh... Still wonder why nscd is so high in DRS....but more out of curiosity, I guess, now... Thanks for the responses... Linda steve wrote:
On Sunday 19 December 2004 00:33, Linda A. W. wrote:
I'm wondering why nscd seems to have the largest size of any system program running on my system?
Are you using NIS?
Linda, On Saturday 18 December 2004 15:33, Linda A. W. wrote:
I'm wondering why nscd seems to have the largest size of any system program running on my system? It has a listed size of 10706K. I look at the functionality and my configs:
...
I mean takes ~10Meg to cache 37 passwd entries, 53 group entries and their access routines? Is it "reasonable" to expect that a program that has to manage 2 files:
What's the big deal? On my system, it's over 42 megabytes, but only 756K are resident. If I were you, I'd only concern myself with the resident size (the "RSS" column in long-form "ps" output). To be honest, I don't know what use is being made of NIS on this system. There's me logging via kdm to KDE, including several shells and I have one remote user who logs in via SSH. I don't use NFS or Samba or run a mail server. I do have Tomcat at Apache running. I have only local password storage and there are no other machines on my LAN. But guess what. I don't really care. If circumstances were to demand that I educate myself about how NIS within Linux and / or SuSE systems, I'd do it, of course. But as it is, stuff works, and that's good enough for me.
-rw-r--r-- 1 shadow 1.6K 2004-11-03 19:11 /etc/group -rw-r--r-- 1 root 4.6K 2004-10-17 15:11 /etc/passwd
with about 6.2K of data to require a 10M run-size footprint?
If this isn't the correct place for this, could someone point me where to ask this question?
Thanks! Linda
Unless you're dealing with an actual problem, I'd remain blissfully ignorant of all the fancy stuff under the hood, just as you probably do with your car. Randall Schulz
participants (3)
-
Linda A. W.
-
Randall R Schulz
-
steve