Hello!
After clean install of cloudlinux 6.2 in xenpv and cPanel 11.32 ive found such problem. I dunno who develops the cPanel plugin for LVE, so asking here:
Problem: cPanel and WHM interfaces shows max memory multiplied by 4.
Example:
#cat /etc/container/ve.cfg
<lveconfig>
<system>
<ubc enabled="false"></ubc>
</system>
<defaults>
<cpu limit=" 25"></cpu>
<ncpu limit="1"></ncpu>
<io limit=" 25"></io>
<mem limit="262144"></mem>
<other maxentryprocs=" 20"></other>
</defaults>
</lveconfig>
@ Users cPanel and WHM plugin default max memory limit shows as 1Gb.
If ill input 256Mb in WHM plugin, then at ve.cfg would be 64Mb.
Fix is simple, edit /usr/local/cpanel/Cpanel/LVEInfo.pm.
Remove bitwise operations "<< 2" fr om sections:
sub _mem_limit {
return $lve[LMEM_INDEX] << 2 if (@lve);
return $def[LMEM_INDEX] << 2;
}
sub round_mem_lim it {
return RoundMemK( $lve[LMEM_INDEX] << 2 ) if (@lve);
return RoundMemK( $def[LMEM_INDEX] << 2 );
}
Who can fix it?
==== CageFS ====
Problem: Unable to set max UID or set Regexp for enabled users.
Weve got LDAP auth for service users (uid users =>20000) and all of them are logging to cagefs, thats no a good idea. Using cagefs/users.disabled allowed only by cagefsctl, runnin ldapsearch -x -b ou..dc.. and then cagefsctl --disable $user by cron not a good idea, imho. New created users in LDAP automaticly logged into cagefs. So.. are you planning to create parameter max-uid, or create regexp for enabled users/uids, whichd enter into cagefs. Itd we very nice if you implement it.
Outputs:
# uname -a
Linux hostname 2.6.32-320.4.1.lve1.1.7.el6.x86_64 #1 SMP Mon May 21 11:39:07 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
# yum list installed cagefs*
cagefs.x86_64 3.5-1.el6.cloudlinux @cloudlinux-x86_64-server-6
cagefs-safebin.x86_64 3.5-1.el6.cloudlinux @cloudlinux-x86_64-server-6
--
WBR.
After clean install of cloudlinux 6.2 in xenpv and cPanel 11.32 ive found such problem. I dunno who develops the cPanel plugin for LVE, so asking here:
Problem: cPanel and WHM interfaces shows max memory multiplied by 4.
Example:
#cat /etc/container/ve.cfg
<lveconfig>
<system>
<ubc enabled="false"></ubc>
</system>
<defaults>
<cpu limit=" 25"></cpu>
<ncpu limit="1"></ncpu>
<io limit=" 25"></io>
<mem limit="262144"></mem>
<other maxentryprocs=" 20"></other>
</defaults>
</lveconfig>
@ Users cPanel and WHM plugin default max memory limit shows as 1Gb.
If ill input 256Mb in WHM plugin, then at ve.cfg would be 64Mb.
Fix is simple, edit /usr/local/cpanel/Cpanel/LVEInfo.pm.
Remove bitwise operations "<< 2" fr om sections:
sub _mem_limit {
return $lve[LMEM_INDEX] << 2 if (@lve);
return $def[LMEM_INDEX] << 2;
}
sub round_mem_lim it {
return RoundMemK( $lve[LMEM_INDEX] << 2 ) if (@lve);
return RoundMemK( $def[LMEM_INDEX] << 2 );
}
Who can fix it?
==== CageFS ====
Problem: Unable to set max UID or set Regexp for enabled users.
Weve got LDAP auth for service users (uid users =>20000) and all of them are logging to cagefs, thats no a good idea. Using cagefs/users.disabled allowed only by cagefsctl, runnin ldapsearch -x -b ou..dc.. and then cagefsctl --disable $user by cron not a good idea, imho. New created users in LDAP automaticly logged into cagefs. So.. are you planning to create parameter max-uid, or create regexp for enabled users/uids, whichd enter into cagefs. Itd we very nice if you implement it.
Outputs:
# uname -a
Linux hostname 2.6.32-320.4.1.lve1.1.7.el6.x86_64 #1 SMP Mon May 21 11:39:07 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
# yum list installed cagefs*
cagefs.x86_64 3.5-1.el6.cloudlinux @cloudlinux-x86_64-server-6
cagefs-safebin.x86_64 3.5-1.el6.cloudlinux @cloudlinux-x86_64-server-6
--
WBR.
Comment