[Ocfs2-users] Ocfs2 and low memory

Sunil Mushran Sunil.Mushran at oracle.com
Tue Oct 31 11:16:51 PST 2006


To monitor ocfs2 memory usage, do:

# cat /proc/slabinfo | egrep 'ocfs|dlm|size-256 |size-32 '
ocfs2_lock            16    226     16  226    1 : tunables  120   60    
0 : slabdata      1      1      0
ocfs2_inode_cache     22     24   1152    3    1 : tunables   24   12    
0 : slabdata      8      8      0
ocfs2_uptodate        28    119     32  119    1 : tunables  120   60    
0 : slabdata      1      1      0
ocfs2_em_ent          10    183     64   61    1 : tunables  120   60    
0 : slabdata      3      3      0
dlmfs_inode_cache      1      5    768    5    1 : tunables   54   27    
0 : slabdata      1      1      0
dlm_mle_cache          0      0    384   10    1 : tunables   54   27    
0 : slabdata      0      0      0
size-256           40245  40245    256   15    1 : tunables  120   60    
0 : slabdata   2683   2683      0
size-32            41650  41650     32  119    1 : tunables  120   60    
0 : slabdata    350    350      0

# cat /proc/fs/ocfs2_dlm/*/stat
local=26, remote=0, unknown=0
local=39963, remote=6, unknown=0

size-256/32 are generic slab caches but are also used by ocfs2dlm.
The ocfs2dlm impact on it can be detected by the second cat which lists
the number of locally mastered (local) locks which are currently not
freed until the volume is umounted. (The patch-fix is being tested.)

Rafal Maliszewski wrote:
> Hi guys
>
> I have 4 node cluster with OCFS2.
> From time to time redhat fired : oom-killer to kill process with high 
> amout of memory ( for example tomcat)
>
> My friends suppose that ocfs2 consume memory.
>
> So I have question:
> How check how many memory is occupied by ocfs processes?
> Is it a low memory?
>
> regards
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Ocfs2-users mailing list
> Ocfs2-users at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-users
>   



More information about the Ocfs2-users mailing list