RAM
Posted: Fri May 10, 2013 6:53 pm
Народ подскажите почему RAM так забита, а своп вобще не используеться. На сервере только один домен и то не посещаемый.
Code: Select all
free -m
total used free shared buffers cached
Mem: 7700 7515 185 0 1614 3496
-/+ buffers/cache: 2403 5296
Swap: 2047 0 0
Code: Select all
#!/bin/bash
System=$(free | awk '{print "system:" $3}' |head -n3 |tail -n1)
Buffers=$(free | awk '{print "buffers:" $6}' |head -n2 |tail -n1)
Cache=$(free | awk '{print "cache:" $7}' |head -n2 |tail -n1)
SWAP=$(free | awk '{print "swap:" $3}' |tail -n1)
echo "$System $Buffers $Cache $SWAP"
Code: Select all
top
Code: Select all
cat /proc/meminfo
imperio wrote:JEY70 можно увидеть вывод команд, после того как добавили память?Code: Select all
top
Code: Select all
cat /proc/meminfo
Code: Select all
[root@drivesite ~]# top
top - 22:32:32 up 1 day, 1:33, 2 users, load average: 0.00, 0.00, 0.00
Tasks: 115 total, 1 running, 114 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.3%us, 0.3%sy, 0.0%ni, 98.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 3662996k total, 573728k used, 3089268k free, 100948k buffers
Swap: 3604472k total, 0k used, 3604472k free, 236436k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
19279 root 20 0 96528 3784 2876 S 0.3 0.1 0:00.01 sshd
19280 root 20 0 96528 3780 2876 S 0.3 0.1 0:00.01 sshd
1 root 20 0 19228 1476 1188 S 0.0 0.0 0:01.33 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
4 root 20 0 0 0 0 S 0.0 0.0 0:00.04 ksoftirqd/0
5 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
6 root RT 0 0 0 0 S 0.0 0.0 0:00.07 watchdog/0
7 root 20 0 0 0 0 S 0.0 0.0 0:03.56 events/0
8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cgroup
9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khelper
10 root 20 0 0 0 0 S 0.0 0.0 0:00.00 netns
11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 async/mgr
12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pm
13 root 20 0 0 0 0 S 0.0 0.0 0:00.21 sync_supers
14 root 20 0 0 0 0 S 0.0 0.0 0:00.22 bdi-default
15 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kintegrityd/0
16 root 20 0 0 0 0 S 0.0 0.0 0:01.13 kblockd/0
17 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kacpid
18 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kacpi_notify
19 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kacpi_hotplug
20 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ata/0
21 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ata_aux
22 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksuspend_usbd
23 root 20 0 0 0 0 S 0.0 0.0 0:00.02 khubd
24 root 20 0 0 0 0 S 0.0 0.0 0:00.04 kseriod
25 root 20 0 0 0 0 S 0.0 0.0 0:00.00 md/0
26 root 20 0 0 0 0 S 0.0 0.0 0:00.00 md_misc/0
27 root 20 0 0 0 0 S 0.0 0.0 0:00.01 khungtaskd
28 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kswapd0
29 root 25 5 0 0 0 S 0.0 0.0 0:00.00 ksmd
30 root 39 19 0 0 0 S 0.0 0.0 0:00.84 khugepaged
31 root 20 0 0 0 0 S 0.0 0.0 0:00.00 aio/0
32 root 20 0 0 0 0 S 0.0 0.0 0:00.00 crypto/0
37 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthrotld/0
48 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kpsmoused
49 root 20 0 0 0 0 S 0.0 0.0 0:00.00 usbhid_resumer
79 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kstriped
157 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ttm_swap
176 root 15 -5 0 0 0 S 0.0 0.0 2:26.17 kslowd000
177 root 15 -5 0 0 0 S 0.0 0.0 2:26.14 kslowd001
241 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
242 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
243 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_2
244 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_3
256 root 20 0 0 0 0 S 0.0 0.0 0:00.01 scsi_eh_4
257 root 20 0 0 0 0 S 0.0 0.0 0:00.01 scsi_eh_5
390 root 20 0 0 0 0 S 0.0 0.0 0:00.48 kdmflush
392 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdmflush
409 root 20 0 0 0 0 S 0.0 0.0 0:01.88 jbd2/dm-0-8
410 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ext4-dio-unwrit
479 root 16 -4 10632 716 300 S 0.0 0.0 0:00.03 udevd
723 root 20 0 0 0 0 S 0.0 0.0 0:00.00 hd-audio0
734 root 20 0 0 0 0 S 0.0 0.0 0:00.00 edac-poller
833 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdmflush
865 root 20 0 0 0 0 S 0.0 0.0 0:00.00 jbd2/sda1-8
Code: Select all
[root@drivesite ~]# cat /proc/meminfo
MemTotal: 3662996 kB
MemFree: 3090516 kB
Buffers: 101036 kB
Cached: 236528 kB
SwapCached: 0 kB
Active: 305524 kB
Inactive: 155364 kB
Active(anon): 123536 kB
Inactive(anon): 1612 kB
Active(file): 181988 kB
Inactive(file): 153752 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 3604472 kB
SwapFree: 3604472 kB
Dirty: 60 kB
Writeback: 0 kB
AnonPages: 123352 kB
Mapped: 43524 kB
Shmem: 1832 kB
Slab: 53048 kB
SReclaimable: 21016 kB
SUnreclaim: 32032 kB
KernelStack: 1544 kB
PageTables: 10228 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 5435968 kB
Committed_AS: 392200 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 292360 kB
VmallocChunk: 34359441452 kB
HardwareCorrupted: 0 kB
AnonHugePages: 51200 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 8704 kB
DirectMap2M: 1824768 kB
DirectMap1G: 2097152 kB