Dear Friends, I incremented parameter dcachesize, but I continue receive failcnt. And when execute services and other commande I have received message "Cannot allocate memory". I use centos 4.6 but, the container is centos 5. Below, I show conf file. ONBOOT="no" # UBC parameters (in form of barrier:limit) # Primary parameters AVNUMPROC="40:40" NUMPROC="200:200" NUMTCPSOCK="280:280" NUMOTHERSOCK="280:280" VMGUARPAGES="65536:2147483647" # Secondary parameters KMEMSIZE="22020096:23488096" TCPSNDBUF="3194880:5242880" TCPRCVBUF="3194880:5242880" OTHERSOCKBUF="1320960:3368960" DGRAMRCVBUF="132096:132096" OOMGUARPAGES="6144:2147483647" # Auxiliary parameters LOCKEDPAGES="32:32" SHMPAGES="8192:8192" PRIVVMPAGES="264144:524288" NUMFILE="4096:4096" NUMFLOCK="100:110" NUMPTY="16:16" NUMSIGINFO="256:256" DCACHESIZE="1048576:1097728" PHYSPAGES="0:2147483647" NUMIPTENT="128:128" # Disk quota parameters (in form of softlimit:hardlimit) DISKSPACE="4194304:4613736" DISKINODES="800000:880000" QUOTATIME="0" DISK QUOTA=yes # CPU fair sheduler parameter CPUUNITS="1000" OFFLINE_MANAGEMENT="yes" IP_ADDRESS="192.168.100.18" VE_ROOT="/vz/root/$VEID" VE_PRIVATE="/vz/private/$VEID" OSTEMPLATE="centos-5-i386-default" HOSTNAME="xx.xxx.xxx" NAMESERVER="123.123.123.123" FEATURES="sysfs:on " ==================================== Thanks for help. Adriano
Hi, Could you please also show us "cat /proc/user_beancounters" output and also "df -h" and "df -i" output from inside your VE. And please exact command you used and exact error you received if it is possible.
Hi, Below, I show output commands [root@srv002 afrare]# vzctl exec 108 df -h Filesystem Size Used Avail Use% Mounted on /dev/simfs 4.0G 1.6G 1.2G 58% / tmpfs 314M 8.0K 314M 1% /dev [root@srv002 afrare]# vzctl exec 108 df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/simfs 800000 72393 727607 10% / tmpfs 80177 899 79278 2% /dev Please, see log. ==================================================== [root@srv002 afrare]# vzctl exec 108 tail -f /var/log/secure Apr 4 08:18:01 srv008 crond[26090]: PAM unable to dlopen(/lib/security/pam_unix.so) Apr 4 08:18:01 srv008 crond[26090]: PAM [error: libcrack.so.2: cannot open shared object file: Cannot allocate memory] Apr 4 08:18:01 srv008 crond[26090]: PAM adding faulty module: /lib/security/pam_unix.so Apr 4 08:18:01 srv008 crond[26090]: PAM unable to dlopen(/lib/security/pam_access.so) Apr 4 08:18:01 srv008 crond[26090]: PAM [error: libnsl.so.1: cannot open shared object file: Cannot allocate memory] Apr 4 08:18:01 srv008 crond[26090]: PAM adding faulty module: /lib/security/pam_access.so Apr 4 08:22:18 srv008 sshd[18394]: Received signal 15; terminating. Apr 4 08:22:18 srv008 sshd[20330]: pam_unix(sshd:session): session closed for user afrare Apr 4 08:22:36 srv008 sshd[28118]: Server listening on 0.0.0.0 port 22. Apr 4 08:30:01 srv008 crond[29861]: PAM audit_open() failed: Cannot allocate memory ==================================================== Thanks,
And also "cat /proc/user_beancounters". I wasn't be able to find it.
Hi, Quote: I incremented parameter dcachesize, but I continue receive failcnt. If you continue receive failcnt increase dcachesize parameter until failcnt stops increasing. Try to set a huge value of dcachesize then look at its consumption and then decrease it to appropriate value. If it is not help we'll continue our investigations.
Dear Friend, See -> cat /proc/user_beancounters dcachesize 1049256 1054920 1050000 2147483647 660 I don't understand why it occour. Thanks again Adriano
Quote: dcachesize 1049256 1054920 1050000 2147483647 660 Compare these values 1054920 and 1050000. You should increase barrier value too! 1050000 is not enough.
Hi, I changed parameter to DCACHESIZE="2109840:2147483647" and solved problem. Thanks Adriano