gurutech
21-11-2003, 10:12
Ciao,
sto cercando di raccapezzarmi con un server GNU/Linux che fa le bizze.
Innanzitutto ho il sospetto che la macchina possa essere sottodimensionata per le sue esigenze.
Vi faccio vedere un paio di output.
Ho bisogno anche di capire come si legge top e cosa significa load avg:
server:/var/log# free -m
total used free shared buffers cached
Mem: 377 367 9 0 158 52
-/+ buffers/cache: 155 221
Swap: 976 63 912
server:/var/log# uptime
10:51:39 up 2 days, 2:10, 1 user, load average: 0.02, 0.32, 0.30
Top by memory usage:
10:52:55 up 2 days, 2:11, 1 user, load average: 0.17, 0.30, 0.29
832 processes: 815 sleeping, 17 running, 0 zombie, 0 stopped
CPU states: 0.8% user, 3.6% system, 0.0% nice, 95.6% idle
Mem: 386400K total, 378988K used, 7412K free, 163744K buffers
Swap: 999920K total, 65208K used, 934712K free, 54192K cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
28771 nobody 15 0 46824 45M 1628 S 0.3 12.1 0:15 squid
14177 www-data 15 0 12448 11M 3416 S 0.0 3.0 0:04 apache
5666 root 15 0 11780 10M 4984 S 0.0 2.6 0:00 symcscan
5667 root 15 0 11780 10M 4984 S 0.0 2.6 0:00 symcscan
5668 root 15 0 11780 10M 4984 S 0.0 2.6 0:00 symcscan
5669 root 15 0 11780 10M 4984 S 0.0 2.6 0:02 symcscan
5670 root 15 0 11780 10M 4984 S 0.0 2.6 0:00 symcscan
5671 root 15 0 11780 10M 4984 S 0.0 2.6 0:00 symcscan
5672 root 15 0 11780 10M 4984 S 0.0 2.6 0:00 symcscan
Top by CPU Usage:
10:54:13 up 2 days, 2:13, 1 user, load average: 0.05, 0.23, 0.27
836 processes: 832 sleeping, 4 running, 0 zombie, 0 stopped
CPU states: 1.1% user, 3.8% system, 0.0% nice, 95.0% idle
Mem: 386400K total, 380300K used, 6100K free, 164264K buffers
Swap: 999920K total, 65208K used, 934712K free, 54224K cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
30207 root 16 0 1516 1516 792 R 4.2 0.3 0:05 top
269 root 15 0 6656 3896 1432 S 0.3 1.0 2:26 winbindd
1 root 15 0 472 432 412 S 0.0 0.1 0:04 init
2 root 15 0 0 0 0 SW 0.0 0.0 0:00 keventd
3 root 34 19 0 0 0 SWN 0.0 0.0 0:00 ksoftirqd_CPU0
4 root 15 0 0 0 0 SW 0.0 0.0 0:06 kswapd
5 root 15 0 0 0 0 SW 0.0 0.0 0:00 bdflush
6 root 15 0 0 0 0 SW 0.0 0.0 0:05 kupdated
8 root 25 0 0 0 0 SW 0.0 0.0 0:00 mdrecoveryd
7 root 15 0 0 0 0 SW 0.0 0.0 0:00 khubd
9 root 25 0 0 0 0 SW 0.0 0.0 0:00 raid1d
10 root 25 0 0 0 0 SW 0.0 0.0 0:00 raid1d
11 root 25 0 0 0 0 SW 0.0 0.0 0:00 raid1d
12 root 25 0 0 0 0 SW 0.0 0.0 0:00 raid1d
13 root 25 0 0 0 0 SW 0.0 0.0 0:00 raid1d
14 root 25 0 0 0 0 SW 0.0 0.0 0:00 raid1d
15 root 25 0 0 0 0 SW 0.0 0.0 0:00 raid1d
16 root 25 0 0 0 0 SW 0.0 0.0 0:00 raid1d
17 root 15 0 0 0 0 SW 0.0 0.0 0:00 kreiserfsd
228 root 15 0 772 760 700 S 0.0 0.1 0:05 syslogd
231 root 15 0 1128 384 384 S 0.0 0.0 0:00 klogd
240 root 15 0 708 568 504 S 0.0 0.1 0:00 pdns_server
241 root 15 0 708 568 504 S 0.0 0.1 0:00 pdns_server
242 root 17 0 708 568 504 S 0.0 0.1 0:00 pdns_server
server:/var/log# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.26GHz
stepping : 4
cpu MHz : 2259.554
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 4508.87
server:/var/log# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md1 477M 228M 248M 48% /
none 189M 0 188M 0% /dev/shm
/dev/md0 14M 7.4M 5.6M 57% /boot
/dev/md2 4.9G 1.6G 3.3G 32% /usr
/dev/md3 4.9G 299M 4.5G 6% /opt
/dev/md4 4.9G 1.7G 3.2G 33% /backup
/dev/md5 2.0G 36M 1.9G 2% /tmp
/dev/md6 19G 8.3G 11G 43% /var
/dev/md7 37G 545M 36G 2% /home
sto cercando di raccapezzarmi con un server GNU/Linux che fa le bizze.
Innanzitutto ho il sospetto che la macchina possa essere sottodimensionata per le sue esigenze.
Vi faccio vedere un paio di output.
Ho bisogno anche di capire come si legge top e cosa significa load avg:
server:/var/log# free -m
total used free shared buffers cached
Mem: 377 367 9 0 158 52
-/+ buffers/cache: 155 221
Swap: 976 63 912
server:/var/log# uptime
10:51:39 up 2 days, 2:10, 1 user, load average: 0.02, 0.32, 0.30
Top by memory usage:
10:52:55 up 2 days, 2:11, 1 user, load average: 0.17, 0.30, 0.29
832 processes: 815 sleeping, 17 running, 0 zombie, 0 stopped
CPU states: 0.8% user, 3.6% system, 0.0% nice, 95.6% idle
Mem: 386400K total, 378988K used, 7412K free, 163744K buffers
Swap: 999920K total, 65208K used, 934712K free, 54192K cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
28771 nobody 15 0 46824 45M 1628 S 0.3 12.1 0:15 squid
14177 www-data 15 0 12448 11M 3416 S 0.0 3.0 0:04 apache
5666 root 15 0 11780 10M 4984 S 0.0 2.6 0:00 symcscan
5667 root 15 0 11780 10M 4984 S 0.0 2.6 0:00 symcscan
5668 root 15 0 11780 10M 4984 S 0.0 2.6 0:00 symcscan
5669 root 15 0 11780 10M 4984 S 0.0 2.6 0:02 symcscan
5670 root 15 0 11780 10M 4984 S 0.0 2.6 0:00 symcscan
5671 root 15 0 11780 10M 4984 S 0.0 2.6 0:00 symcscan
5672 root 15 0 11780 10M 4984 S 0.0 2.6 0:00 symcscan
Top by CPU Usage:
10:54:13 up 2 days, 2:13, 1 user, load average: 0.05, 0.23, 0.27
836 processes: 832 sleeping, 4 running, 0 zombie, 0 stopped
CPU states: 1.1% user, 3.8% system, 0.0% nice, 95.0% idle
Mem: 386400K total, 380300K used, 6100K free, 164264K buffers
Swap: 999920K total, 65208K used, 934712K free, 54224K cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
30207 root 16 0 1516 1516 792 R 4.2 0.3 0:05 top
269 root 15 0 6656 3896 1432 S 0.3 1.0 2:26 winbindd
1 root 15 0 472 432 412 S 0.0 0.1 0:04 init
2 root 15 0 0 0 0 SW 0.0 0.0 0:00 keventd
3 root 34 19 0 0 0 SWN 0.0 0.0 0:00 ksoftirqd_CPU0
4 root 15 0 0 0 0 SW 0.0 0.0 0:06 kswapd
5 root 15 0 0 0 0 SW 0.0 0.0 0:00 bdflush
6 root 15 0 0 0 0 SW 0.0 0.0 0:05 kupdated
8 root 25 0 0 0 0 SW 0.0 0.0 0:00 mdrecoveryd
7 root 15 0 0 0 0 SW 0.0 0.0 0:00 khubd
9 root 25 0 0 0 0 SW 0.0 0.0 0:00 raid1d
10 root 25 0 0 0 0 SW 0.0 0.0 0:00 raid1d
11 root 25 0 0 0 0 SW 0.0 0.0 0:00 raid1d
12 root 25 0 0 0 0 SW 0.0 0.0 0:00 raid1d
13 root 25 0 0 0 0 SW 0.0 0.0 0:00 raid1d
14 root 25 0 0 0 0 SW 0.0 0.0 0:00 raid1d
15 root 25 0 0 0 0 SW 0.0 0.0 0:00 raid1d
16 root 25 0 0 0 0 SW 0.0 0.0 0:00 raid1d
17 root 15 0 0 0 0 SW 0.0 0.0 0:00 kreiserfsd
228 root 15 0 772 760 700 S 0.0 0.1 0:05 syslogd
231 root 15 0 1128 384 384 S 0.0 0.0 0:00 klogd
240 root 15 0 708 568 504 S 0.0 0.1 0:00 pdns_server
241 root 15 0 708 568 504 S 0.0 0.1 0:00 pdns_server
242 root 17 0 708 568 504 S 0.0 0.1 0:00 pdns_server
server:/var/log# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.26GHz
stepping : 4
cpu MHz : 2259.554
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 4508.87
server:/var/log# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md1 477M 228M 248M 48% /
none 189M 0 188M 0% /dev/shm
/dev/md0 14M 7.4M 5.6M 57% /boot
/dev/md2 4.9G 1.6G 3.3G 32% /usr
/dev/md3 4.9G 299M 4.5G 6% /opt
/dev/md4 4.9G 1.7G 3.2G 33% /backup
/dev/md5 2.0G 36M 1.9G 2% /tmp
/dev/md6 19G 8.3G 11G 43% /var
/dev/md7 37G 545M 36G 2% /home