Wednesday, 28 December 2016

How to check swappiness value on Linux Box.



[root@sankar-test ~]# cat /proc/sys/vm/swappiness
60 -- default value



FYI,
swappiness can have a value of between 0 and 100

swappiness=0 tells the kernel to avoid swapping processes out of physical memory for as long as possible

swappiness=1 tells the kernel to Minimum swappiness without disabling it entirely

swappiness=100 tells the kernel to aggressively swap processes out of physical memory and move them to swap cache

swappiness=60
(default) the swap file will be used fairly often if the memory usage is around half of my RAM.

Wednesday, 21 December 2016

NFS Service Error(Starting NFS quotas: Cannot register service:..)

[root@sankar-test ~]# service nfs status
rpc.mountd is stopped
nfsd is stopped
rpc.rquotad is stopped

[root@sankar-test ~]# service nfs start
Starting NFS services:  [  OK  ]
Starting NFS quotas: Cannot register service: RPC: Unable to receive; errno = Connection refused
rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp).
[FAILED]
Starting NFS daemon:

[1]+  Stopped                 service nfs start

[root@sankar-test ~]# service rpcbind status
rpcbind: unrecognized service

[root@sankar-test ~]# service portmap status
portmap is stopped

[root@sankar-test~]# service portmap start
Starting portmap: [  OK  ]

[root@sankar-test ~]# service nfs start
Starting NFS services:  [  OK  ]
Starting NFS quotas: [  OK  ]
Starting NFS daemon: [  OK  ]
Starting NFS mountd: [  OK  ]
Starting RPC idmapd: [  OK  ]
[root@sankar-test ~]#