LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-12-2013, 06:39 AM   #16
vannathlab
Member
 
Registered: Dec 2012
Location: Cambodia
Distribution: Debian, CentOS. SLES
Posts: 30

Original Poster
Rep: Reputation: Disabled

Hi,

Here the out put of command "grep Slab /root/tmp/meminfo.*"

Quote:
# grep Slab /root/tmp/meminfo.*
/root/tmp/meminfo.201309070914:Slab: 309984 kB
/root/tmp/meminfo.201309071014:Slab: 310588 kB
/root/tmp/meminfo.201309071114:Slab: 310416 kB
/root/tmp/meminfo.201309071214:Slab: 310260 kB
/root/tmp/meminfo.201309121554:Slab: 135924 kB
/root/tmp/meminfo.201309121654:Slab: 135892 kB
/root/tmp/meminfo.201309121754:Slab: 145040 kB
Here the out put of command "cat /proc/slabinfo | awk -F" " '{printf "$1 : %10.0f\n", ($3*$4) }'"

Quote:
# cat /proc/slabinfo | awk -F" " '{printf "$1 : %10.0f\n", ($3*$4) }'
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 3840
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 3808
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 264960
$1 : 2006816
$1 : 15392544
$1 : 0
$1 : 0
$1 : 0
$1 : 15392
$1 : 0
$1 : 0
$1 : 0
$1 : 255024
$1 : 0
$1 : 19040
$1 : 3232
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 62208
$1 : 106720
$1 : 7680
$1 : 3584
$1 : 3840
$1 : 7680
$1 : 3752
$1 : 8192
$1 : 4096
$1 : 4096
$1 : 4096
$1 : 3840
$1 : 0
$1 : 3776
$1 : 7680
$1 : 3584
$1 : 0
$1 : 30464
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 11520
$1 : 0
$1 : 0
$1 : 49920
$1 : 74936
$1 : 0
$1 : 3584
$1 : 7696
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 19040
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 7680
$1 : 67392
$1 : 0
$1 : 0
$1 : 3776
$1 : 11520
$1 : 0
$1 : 0
$1 : 3752
$1 : 3696
$1 : 11520
$1 : 3584
$1 : 0
$1 : 22464
$1 : 0
$1 : 0
$1 : 0
$1 : 13824
$1 : 11448
$1 : 19200
$1 : 0
$1 : 48672
$1 : 14720
$1 : 30528
$1 : 0
$1 : 3808
$1 : 111360
$1 : 622592
$1 : 0
$1 : 0
$1 : 0
$1 : 8448
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 111360
$1 : 43008
$1 : 610560
$1 : 3840
$1 : 0
$1 : 712416
$1 : 259488
$1 : 0
$1 : 0
$1 : 0
$1 : 40480
$1 : 95200
$1 : 3936
$1 : 935088
$1 : 3840
$1 : 42240
$1 : 2671056
$1 : 19200
$1 : 499200
$1 : 2368632
$1 : 4765440
$1 : 36864
$1 : 3840
$1 : 46495384
$1 : 3696
$1 : 832480
$1 : 107520
$1 : 37760
$1 : 139392
$1 : 396032
$1 : 525888
$1 : 147456
$1 : 724608
$1 : 234240
$1 : 332640
$1 : 252992
$1 : 99840
$1 : 0
$1 : 0
$1 : 41916560
$1 : 251328
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 0
$1 : 262144
$1 : 0
$1 : 0
$1 : 0
$1 : 1638400
$1 : 0
$1 : 131072
$1 : 0
$1 : 327680
$1 : 0
$1 : 376832
$1 : 0
$1 : 1236992
$1 : 0
$1 : 876544
$1 : 0
$1 : 4595712
$1 : 0
$1 : 720896
$1 : 0
$1 : 353280
$1 : 0
$1 : 322560
$1 : 0
$1 : 0
$1 : 2008832
$1 : 0
$1 : 629760
$1 : 372736
$1 : 80640
Here the out put command "cat /proc/slabinfo | awk -F" " '{printf $1" : %10.0f\n", ($3*$4) }' | grep -ve " 0$""

Quote:
# cat /proc/slabinfo | awk -F" " '{printf $1" : %10.0f\n", ($3*$4) }' | grep -ve " 0$"
jfs_mp : 3840
xfs_ioend : 3808
ioat2 : 264960
ext4_groupinfo_4k : 2006816
ext4_inode_cache : 15392544
ext4_prealloc_space : 15392
jbd2_inode : 255024
jbd2_journal_head : 19040
jbd2_revoke_table : 3232
dm_target_io : 62208
dm_io : 106720
bio-1 : 7680
sd_ext_cdb : 3584
scsi_sense_cache : 3840
scsi_cmd_cache : 7680
uhci_urb_priv : 3752
sgpool-128 : 8192
sgpool-64 : 4096
sgpool-32 : 4096
sgpool-16 : 4096
sgpool-8 : 3840
fib6_nodes : 3776
ip6_dst_cache : 7680
ndisc_cache : 3584
RAWv6 : 30464
TCPv6 : 11520
cfq_io_context : 49920
cfq_queue : 74936
mqueue_inode_cache : 3584
hugetlbfs_inode_cache : 7696
inotify_inode_mark : 19040
uid_cache : 7680
UNIX : 67392
tcp_bind_bucket : 3776
inet_peer_cache : 11520
ip_fib_trie : 3752
ip_fib_alias : 3696
ip_dst_cache : 11520
arp_cache : 3584
RAW : 22464
TCP : 13824
eventpoll_pwq : 11448
eventpoll_epi : 19200
blkdev_queue : 48672
blkdev_requests : 14720
blkdev_ioc : 30528
fsnotify_event : 3808
bio-0 : 111360
biovec-256 : 622592
bip-256 : 8448
sock_inode_cache : 111360
skbuff_fclone_cache : 3584
skbuff_head_cache : 610560
file_lock_cache : 3840
shmem_inode_cache : 712416
Acpi-Operand : 259488
Acpi-Namespace : 40480
task_delay_info : 95200
taskstats : 3936
proc_inode_cache : 935088
bdev_cache : 42240
sysfs_dir_cache : 2671056
mnt_cache : 19200
filp : 499200
inode_cache : 2368632
dentry : 4765440
names_cache : 20480
key_jar : 3840
buffer_head : 46495384
nsproxy : 3696
vm_area_struct : 832480
mm_struct : 99840
fs_cache : 37760
files_cache : 139392
signal_cache : 396032
sighand_cache : 525888
task_xstate : 147456
task_struct : 724608
cred_jar : 234240
anon_vma_chain : 332640
anon_vma : 252992
pid : 99840
radix_tree_node : 41916560
idr_layer_cache : 251328
size-262144 : 262144
size-65536 : 1638400
size-32768 : 131072
size-16384 : 327680
size-8192 : 376832
size-4096 : 1228800
size-2048 : 876544
size-1024 : 4591616
size-512 : 720896
size-256 : 353280
size-192 : 322560
size-64 : 2008832
size-128 : 629760
size-32 : 372736
kmem_cache : 80640
#
And here is the out put of command "grep cred_jar root/tmp/slab.*"

Quote:
# grep cred_jar /root/tmp/slab.*
/root/tmp/slab.201309121559:cred_jar : 234240
/root/tmp/slab.201309121659:cred_jar : 234240
/root/tmp/slab.201309121759:cred_jar : 234240

But I can not do any thing, because i don't understand the meaning of those out put. Really need your help please help me.

Thanks with best regards,
Vannath
 
Old 09-12-2013, 07:18 AM   #17
akiuni
Member
 
Registered: Sep 2012
Location: France
Distribution: debian
Posts: 56

Rep: Reputation: Disabled
Hi

Well, according to these information, the cache seems to be freeing itself.
If you don't experience any oom issue (just grep "Out of memory" in /var/syslog to check that) then it means that your system is safe.

it's a normal behavior for linux to allocate all the available memory and to free the caches when a process needs more memory.

bests
julien
 
Old 09-12-2013, 07:40 AM   #18
vannathlab
Member
 
Registered: Dec 2012
Location: Cambodia
Distribution: Debian, CentOS. SLES
Posts: 30

Original Poster
Rep: Reputation: Disabled
Hi,

There is nothing out put when I execute command "# tailf /var/log/syslog | grep "Out of memory"".

So, my system is safe right ?

Thanks,
Vannath
 
Old 09-12-2013, 07:41 AM   #19
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by vannathlab View Post
Thank you so much for this useful link. but why my other server is fine and i always get alarm memory critical so is there any way to prevent this?
Nothing is wrong with the memory use. So something is wrong with the configuration of whatever program is producing that "alarm".
It is reporting a problem where there is no problem.

Quote:
Originally Posted by vannathlab View Post
Now I fix it.
...
root@backup2:~# echo 3 | sudo tee /proc/sys/vm/drop_caches
3
That is a bad idea. It just makes your system slower.

Quote:
Originally Posted by akiuni View Post
I suggest that you monitor the /proc/slabinfo file if the problem occures again.
That is a total waste of effort. There have been a few past threads in this forum about mysterious memory consumption, in which the problem was inside the kernel slab allocations, so examining slabinfo was needed to further diagnose the issue. BUT the information in post #1 and in more detail in post #8 of the current thread completely rule out complicated problems like that. There is no reason to look for details of a rare problem known to not be present in the current situation.

Last edited by johnsfine; 09-12-2013 at 07:48 AM.
 
Old 09-12-2013, 07:46 AM   #20
vannathlab
Member
 
Registered: Dec 2012
Location: Cambodia
Distribution: Debian, CentOS. SLES
Posts: 30

Original Poster
Rep: Reputation: Disabled
Hi,

Here is the out put command "free -m"
Quote:
# free -m
total used free shared buffers cached
Mem: 7997 7732 264 0 705 6744
-/+ buffers/cache: 282 7714
Swap: 11443 0 11443
I think my configuration is right to produce this alarm.

Thanks,
Vannath

Last edited by vannathlab; 09-12-2013 at 07:50 AM.
 
Old 09-12-2013, 07:55 AM   #21
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by vannathlab View Post
I think my configuration is right to produce this alarm.
No. It is not right.

For almost all purposes cache memory is as good as free memory.

That is what the free program means with its "-/+ buffers/cache:" line. It is telling you how much memory is used/free if you interpret buffers and cache as equivalent to free, which is the normal interpretation of buffers and cache.

Linux memory reporting tools report buffers and cache separate from free memory, because Linux is designed for experts who are supposed to understand subtle differences. But a beginner should treat buffers and cache as if they are just two more kinds of free memory.

Last edited by johnsfine; 09-12-2013 at 07:57 AM.
 
1 members found this post helpful.
Old 09-12-2013, 07:58 AM   #22
vannathlab
Member
 
Registered: Dec 2012
Location: Cambodia
Distribution: Debian, CentOS. SLES
Posts: 30

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by johnsfine View Post
No. It is not right.

For almost all purposes cache memory is as good as free memory.

That is what the free program means with its "-/+ buffers/cache:" line. It is telling you how much memory is used/free if you interpret buffers and cache as equivalent to free, which is the normal interpretation of buffers and cache.
Thank you so much, so my system is 7714 free.
 
Old 09-12-2013, 08:00 AM   #23
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by vannathlab View Post
so my system is 7714 free.
Correct.
 
Old 09-12-2013, 08:11 AM   #24
vannathlab
Member
 
Registered: Dec 2012
Location: Cambodia
Distribution: Debian, CentOS. SLES
Posts: 30

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by johnsfine View Post
Correct.
Thanks you so much !!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I run test my program with less memory then I have? tfnc99 Programming 6 04-15-2013 02:54 AM
Minimum Memory/Disk Space to run Enterprise Server 5 CanMike Linux - Hardware 1 09-08-2009 03:09 AM
Out Of Memory problems. My server is down. Memory logs attached. guarriman Linux - General 7 06-10-2008 07:46 AM
SSH: How to run console/command in remote server's memory? Vince-0 Linux - Server 3 03-09-2008 10:36 AM
Not enough memory to run YaST nheathtti Linux - Newbie 1 07-23-2007 12:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration