OpenVZ Forum


Home » General » Support » Documented kernel settings (/etc/sysctl.conf) we can or can not set while inside a CT?
Documented kernel settings (/etc/sysctl.conf) we can or can not set while inside a CT? [message #36932] Fri, 31 July 2009 22:20 Go to next message
CatDaaaady is currently offline  CatDaaaady
Messages: 7
Registered: September 2008
Location: 94555
Junior Member
Is anyone aware of a documented list of kernel settings that can and can not be changed while inside a container?

This is what I have found so far:
Parameters that can be modified inside the container.
net.ipv4.ip_forward
net.ipv4.conf.default.proxy_arp  
net.ipv4.conf.default.rp_filter  
net.ipv4.conf.default.accept_source_route  
kernel.msgmnb  
kernel.msgmax  
kernel.shmmax  
kernel.shmall  
net.ipv4.conf.all.arp_announce  


Parameters that can NOT be modified inside the container.
kernel.sysrq  
kernel.core_uses_pid  
net.ipv4.tcp_syncookies  
fs.file-max  
net.core.rmem_max  
net.core.wmem_max  
net.core.rmem_default  
net.core.wmem_default 
net.core.optmem_max 
net.core.netdev_max_backlog 

Example: While inside the container doing something like this will not work:
# echo 262070  > /proc/sys/fs/file-max
#  cat /proc/sys/fs/file-max
65535
#


I noticed if am on the hardware node I can change the settings by using "sysctl". But that will affect all the containers on the system.


Is there away to set certain settings for only specific containers and not all of them?
Re: Documented kernel settings (/etc/sysctl.conf) we can or can not set while inside a CT? [message #36940 is a reply to message #36932] Mon, 03 August 2009 07:31 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Quote:

Is there away to set certain settings for only specific containers and not all of them?


user_beancounters
http://wiki.openvz.org/UBC
Re: Documented kernel settings (/etc/sysctl.conf) we can or can not set while inside a CT? [message #36952 is a reply to message #36932] Mon, 03 August 2009 19:14 Go to previous messageGo to next message
CatDaaaady is currently offline  CatDaaaady
Messages: 7
Registered: September 2008
Location: 94555
Junior Member
That is a good place to start. Razz
But User Bean counters does not cover all the kernel settings. Sad

That is why I am interested in any documentation that details aLl the settings that we can or can not change for a CT.
Re: Documented kernel settings (/etc/sysctl.conf) we can or can not set while inside a CT? [message #36960 is a reply to message #36952] Wed, 05 August 2009 06:24 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
I think the best place to examine is /proc/sys/ subdirectory inside VE. All sysctls that you're allowed to change are there.
Re: Documented kernel settings (/etc/sysctl.conf) we can or can not set while inside a CT? [message #36979 is a reply to message #36960] Wed, 05 August 2009 23:36 Go to previous message
CatDaaaady is currently offline  CatDaaaady
Messages: 7
Registered: September 2008
Location: 94555
Junior Member
All sorts of settings are under /proc. But you can not change them all if you look at my initial post. Only a certain set. Sad

That is why I posted the initial question.
Previous Topic: Main server using x64 bits and VPS using x86
Next Topic: OpenVZ container will not reboot
Goto Forum:
  


Current Time: Sun Nov 10 08:15:02 GMT 2024

Total time taken to generate the page: 0.03500 seconds