-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Daniel Hokka Zakrisson a écrit : > Herbert Poetzl wrote: >> On Mon, Jan 01, 2007 at 02:05:30PM +0100, william Famy wrote: >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA1 >>> >>> To begin with Happy new year to every vserver guy. >> >> and a happy new year to you too ... >> >>> I have to extand the shmmax for my guest but I do not manage to do it. >>> >>> cat /proc/sys/kernel/shmmax >>> 134217728 >>> I have tried the /etc/vserver/host/rlimits >>> I have tried to add bcapability >>> but I do not manage to go ahead with it. >>> >>> I've run under 2.6.19.1 with the last devel vserver patch under debian >>> etch as host. >>> >>> Could somebody tell me how to modify the guest config to execute "echo >>> 134217728 /proc/sys/kernel/shmmax " for my guest. >> >> as 2.6.19.x incorporates the mainline namespace >> stuff, you have to set those values from one of >> the early guest startup script (e.g. prepre-start) >> while you still have 'enough' capabilities ... > > I assume this requires the IPC namespace to be created? That doesn't > happen until the context is created, so none of the scripts would work > for this particular problem. Having a non-executable one that does > something like > VSERVER_EXTRA_CMDS=( $_CHAINECHO /proc/sys/kernel/shmmax 134217728 ) > is probably the only way to make it happen (with current tools). ____________________________________________ [wf:] I try the prepre-start but does not work.
vserver-stat CTX PROC VSZ RSS userTIME sysTIME UPTIME NAME 0 69 211.3M 62.2M 0m06s98 0m04s69 6m15s90 root server 49152 16 194M 30.5M 0m00s80 0m00s30 0m31s99 zm4 ___________________________ cat /etc/vservers/zm4/bcapabilities CAP_SYS_RESOURCE CAP_SYS_ADMIN CAP_IPC_LOCK CAP_IPC_OWNER __________________________ ls /etc/vservers/zm4/rlimits/ as rss shmem ___________________________ cat /etc/vservers/zm4/rlimits/a cat /etc/vservers/zm4/rlimits/as 90000 cat /etc/vservers/zm4/rlimits/rss 10000 cat /etc/vservers/zm4/rlimits/shmem 134217728 ___________________________ cat /proc/virtual/49153/nsproxy NSProxy: c9d27fe0 [c5fba740,cbbf8800,cab7bbc0] Namespace: c5fba740 [#2] RootPath: / SysName: Linux NodeName: zm4 Release: 2.6.19.1-vs2.1.1.7.1 Version: #1 Fri Dec 29 10:53:07 CET 2006 Machine: i686 DomainName: (none) SEMS: 250 32000 32 128 0 MSG: 8192 16384 16 SHM: 33554432 2097152 4096 181 cat /proc/virtual/49153/limit Limit current min/max soft/hard hits PROC: 24 0/ 27 -1/ -1 0 VM: 49660 0/ 51941 90000/ 90000 0 VML: 0 0/ 0 -1/ -1 0 RSS: 7812 0/ 8496 10000/ 10000 0 ANON: 4544 0/ 4730 -1/ -1 0 RMAP: 3268 0/ 3796 -1/ -1 0 FILES: 212 0/ 255 -1/ -1 0 OFD: 152 0/ 152 -1/ -1 0 LOCKS: 2 0/ 2 -1/ -1 0 SOCK: 7 0/ 7 -1/ -1 0 MSGQ: 0 0/ 0 -1/ -1 0 SHM: 181 0/ 181 134217728/134217728 0 SEMA: 0 0/ 0 -1/ -1 0 SEMS: 0 0/ 0 -1/ -1 0 DENT: 153 0/ 154 -1/ -1 0 I try number of combinaison but nothing looks great :-(. I have to contact the tool maintainers. I will do it tomorow. regards. If someone have any idea feel free to send them :-). I have to install my soft under the hosts computer instead of the guest. > >> also using the sysctl interface instead of the >> deprecated procfs one (which might as well be >> hidden away :) is advised ... >> >> maybe special tool support will be added soon, >> so please double check with the tool maintainers > > I guess some nicer way to support it would be required, especially as > more of these settings become available. > >> HTH, >> Herbert >> >>> Thanks for any help. > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFmp3ytBZWkq9aICARAmIkAKCxIwvyTIzHvTYersrmy/7agXM4EwCfeYGC IjZ19E4OndOqQR1YON15WrM= =szF7 -----END PGP SIGNATURE----- _______________________________________________ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver