Gentoo Archives: gentoo-server

From: Jan Groenewald <jan@×××××××.za>
To: gentoo-server@l.g.o
Subject: [gentoo-server] memory usage
Date: Tue, 02 Mar 2004 09:05:59
Message-Id: 20040302082134.GA12002@aims.ac.za
1 Hi
2
3 I have not used gentoo much, and not on a server at all. I thought I
4 should try though. I have a sun v65x server, dual xeon, 3gig ram, and it
5 has an intel raid card in it. As I am going along I'd like to understand
6 what I am seeing!
7
8 I have just downloaded an compiled gs-sources. Really, I want to get
9 development or gentoo-dev-sourcves, but I thought I'd start with
10 something I know. It seems as if more memory is used than I would
11 expect. Any ideas/tips? Also, why does /dev/shm show 1.5gig under
12 df? Here is some output:
13
14 over 400megs used of 3 gigs?
15 kingfisher root # free
16 total used free shared buffers cached
17 Mem: 3104572 473000 2631572 0 93480 227196
18 -/+ buffers/cache: 152324 2952248
19 Swap: 4008208 0 4008208
20
21
22 ps doesn't show that usage?
23 kingfisher root # ps aux
24 USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
25 root 1 0.0 0.0 1472 484 ? S Feb27 0:01 init [3]
26 root 2 0.0 0.0 0 0 ? SW Feb27 0:00 [keventd]
27 root 3 0.0 0.0 0 0 ? SWN Feb27 0:00 [ksoftirqd_CPU0]
28 root 4 0.0 0.0 0 0 ? SWN Feb27 0:02 [ksoftirqd_CPU1]
29 root 5 0.0 0.0 0 0 ? SW Feb27 0:00 [kswapd]
30 root 6 0.0 0.0 0 0 ? SW Feb27 0:00 [bdflush]
31 root 7 0.0 0.0 0 0 ? SW Feb27 0:00 [kupdated]
32 root 11 0.0 0.0 0 0 ? SW Feb27 0:00 [scsi_eh_0]
33 root 12 0.0 0.0 0 0 ? SW Feb27 0:00 [khubd]
34 root 15 0.0 0.0 0 0 ? SW Feb27 0:00 [kjournald]
35 root 398 0.0 0.0 0 0 ? SW Feb27 0:00 [kjournald]
36 root 399 0.0 0.0 0 0 ? SW Feb27 0:00 [kjournald]
37 root 400 0.0 0.0 0 0 ? SW Feb27 0:00 [kjournald]
38 root 401 0.0 0.0 0 0 ? SW Feb27 0:00 [kjournald]
39 root 402 0.0 0.0 0 0 ? SW Feb27 0:00 [kjournald]
40 root 403 0.0 0.0 0 0 ? SW Feb27 0:00 [kjournald]
41 root 840 0.0 0.0 1732 712 ? S Feb27 0:00 /usr/sbin/syslog-ng
42 root 952 0.0 0.0 1660 640 ? S Feb27 0:00 /usr/sbin/cron
43 root 962 0.0 0.0 2292 992 ? S Feb27 0:00 login -- root
44 root 963 0.0 0.0 1512 564 tty2 S Feb27 0:00 /sbin/agetty 38400 tty2 linux
45 root 964 0.0 0.0 1512 564 tty3 S Feb27 0:00 /sbin/agetty 38400 tty3 linux
46 root 965 0.0 0.0 1512 564 tty4 S Feb27 0:00 /sbin/agetty 38400 tty4 linux
47 root 966 0.0 0.0 1512 564 tty5 S Feb27 0:00 /sbin/agetty 38400 tty5 linux
48 root 967 0.0 0.0 1512 564 tty6 S Feb27 0:00 /sbin/agetty 38400 tty6 linux
49 root 968 0.0 0.0 2380 1332 tty1 S Feb27 0:00 -bash
50 root 11064 0.0 0.0 3400 1436 ? S Feb27 0:00 /usr/sbin/sshd
51 root 11098 0.0 0.0 0 0 ? SW Feb27 0:00 [kjournald]
52 root 1082 0.0 0.0 6320 2040 ? S Feb27 0:00 sshd: root@ttyp0
53 root 1085 0.0 0.0 2380 1344 ttyp0 S Feb27 0:00 -bash
54 root 6059 0.0 0.2 11444 7864 ttyp0 S 09:55 0:00 /usr/bin/python -O /usr/bin/emerge development-sources
55 root 9090 0.0 0.0 2952 1260 ttyp0 S 09:56 0:00 /usr/bin/wget -t 5 --passive-ftp -P /usr/portage/distfiles http://212.219.247.13/sites/www.ibiblio.org/gentoo/distfiles/linux-2.6.3.tar.bz2
56 root 9104 0.0 0.0 6320 2056 ? S 10:02 0:00 sshd: root@ttyp1
57 root 9109 0.0 0.0 2380 1336 ttyp1 S 10:02 0:00 -bash
58 root 9157 0.0 0.0 2456 804 ttyp1 R 10:05 0:00 ps aux
59
60
61
62 not to sure where all of this fits in...
63 kingfisher root # cat /proc/meminfo
64 total: used: free: shared: buffers: cached:
65 Mem: 3179081728 484540416 2694541312 0 95764480 232808448
66 Swap: 4104404992 0 4104404992
67 MemTotal: 3104572 kB
68 MemFree: 2631388 kB
69 MemShared: 0 kB
70 Buffers: 93520 kB
71 Cached: 227352 kB
72 SwapCached: 0 kB
73 Active: 274960 kB
74 Inactive: 53432 kB
75 HighTotal: 1179584 kB
76 HighFree: 942636 kB
77 LowTotal: 1924988 kB
78 LowFree: 1688752 kB
79 SwapTotal: 4008208 kB
80 SwapFree: 4008208 kB
81
82
83
84 kingfisher root # df
85 Filesystem 1K-blocks Used Available Use% Mounted on
86 /dev/sda5 7882560 79180 7402964 2% /
87 /dev/sda6 3945128 1130400 2614320 31% /usr
88 /dev/sda7 3945128 32828 3711892 1% /var/mail
89 /dev/sda8 15757248 32828 14923984 1% /var/www
90 /dev/sda9 3945128 33064 3711656 1% /var/log
91 /dev/sda10 31506596 34336 29871788 1% /var/lib
92 /dev/sda11 3897800 32836 3666968 1% /tmp
93 /dev/sda4 66088624 32844 62698600 1% /home
94 none 1552284 0 1552284 0% /dev/shm
95
96
97 regards,
98 Jan
99 --
100 In our society a person might frequently have to choose between what he thinks
101 is practical and what is ethical. He might choose the practical, and as a
102 result he disintegrates as a human being. Philip K Dick