OpenVZ Forum - RDF feed
type: channel
items: mem intensive apps such as firefox fail despite kmem changes
items: Re: mem intensive apps such as firefox fail despite kmem changes

mem intensive apps such as firefox fail despite kmem changes
type: item
description: Hi, I have a fairly large 8 cpu, 16gb Host Node which I am planning to divide up into 20 VE's using vzsplit. The idea is for remote users to connect in and receive virtual desktops through NoMachine. Everything works but bigger apps such as firefox and eclipse fail with non-obvious errors although they work fine outside of the VEs. I'm pretty sure its resources related but beancounters shows no fails, vzmemcheck and vzcpucheck looks ok Output values in % veid LowMem LowMem RAM MemSwap MemSwap Alloc Alloc Alloc util commit util util commit util commit limit 44 0.23 4.59 0.16 0.15 4.96 0.85 4.96 31.10 2281 0.23 4.59 0.16 0.15 4.96 0.85 4.96 31.10 2283 0.76 5.25 1.08 0.96 5.00 2.50 5.00 31.14 ------------------------------------------------------------------------- Summary: 1.22 14.44 1.41 1.25 14.92 4.20 14.92 93.33 What does seem odd is that despite changing the params in the VEID conf file it does not seem to make a diff to the vzctl startup message about meminfo [root@titan vz-scripts]# vzctl start 2281 Starting VE ... VE is mounted Adding IP address(es): 10.4.38.41 Setting CPU units: 56996 Setting devices Configure meminfo: 1306104 Set hostname: vz1 File resolv.conf was modified VE start in progress... [root@titan vz-scripts]# cat 2281.conf # Configuration file generated by vzsplit for 20 VEs # on HN with total amount of physical mem 16219 Mb # low memory 2907 Mb, swap size 2000 Mb, Max treads 8000 # Resourse commit level 0: # Free resource distribution. Any parameters may be increased # Primary parameters NUMPROC="744:744" AVNUMPROC="372:372" NUMTCPSOCK="744:744" NUMOTHERSOCK="744:744" VMGUARPAGES="217684:2147483647" # Secondary parameters KMEMSIZE="22093824:25533558" TCPSNDBUF="7114260:10161684" TCPRCVBUF="7114260:10161684" OTHERSOCKBUF="3557130:6604554" DGRAMRCVBUF="3557130:3557130" OOMGUARPAGES="217684:2147483647" PRIVVMPAGES="1306104:1436714" # Auxiliary parameters LOCKEDPAGES="1488:1488" SHMPAGES="130610:130610" PHYSPAGES="0:2147483647" NUMFILE="11904:11904"…
creator: paul_xedos
date: 2007-12-06T12:10:34-00:00

Re: mem intensive apps such as firefox fail despite kmem changes
type: item
description: paul_xedos wrote on Thu, 06 December 2007 15:10 I have a fairly large 8 cpu, 16gb Host Node which I am planning to divide up into 20 VE's using vzsplit. The idea is for remote users to connect in and receive virtual desktops through NoMachine. Everything works but bigger apps such as firefox and eclipse fail with non-obvious errors although they work fine outside of the VEs. I'm pretty sure its resources related but beancounters shows no fails, vzmemcheck and vzcpucheck looks ok To measure memory consumption You can remove all limits from Your test VE and execute all required application. Then You can run some tests that will emulate real load. Bu this way you will know maxumum values of of resources consumption and will be able to set these values as limits. paul_xedos wrote on Thu, 06 December 2007 15:10 What does seem odd is that despite changing the params in the VEID conf file it does not seem to make a diff to the vzctl startup message about meminfo Meminfo shows privvmpages barrier value. thank you, Vasily Averin
creator: vaverin
date: 2007-12-06T13:44:44-00:00

Re: mem intensive apps such as firefox fail despite kmem changes
type: item
description: Thankyou very much for this Vasily. Could I just confirm whether the config file changes take effect on start up or only when a VE is first created Cheers Paul
creator: paul_xedos
date: 2007-12-06T14:00:17-00:00

Re: mem intensive apps such as firefox fail despite kmem changes
type: item
description: No need to answer - read the manual again and it takes effect after doing a vzctl stop / start
creator: paul_xedos
date: 2007-12-06T14:32:06-00:00

Re: mem intensive apps such as firefox fail despite kmem changes
type: item
description: Sorry to sound such a duffer but is there an easy way to remove all limits as suggested. Hashing out most of the resources params in the VEID.conf file causes these errors on start up [root@titan vz-scripts]# vzctl start 3842 UB parameter physpages not set UB parameter vmguarpages not set UB parameter oomguarpages not set UB parameter numtcpsock not set UB parameter numflock not set UB parameter numpty not set UB parameter numsiginfo not set UB parameter tcpsndbuf not set :::::::::truncated::::::::::: UB parameter tcprcvbuf not set UB parameter othersockbuf not set UB parameter dgramrcvbuf not set UB parameter numothersock not set UB parameter numfile not set UB parameter dcachesize not set UB parameter numiptent not set
creator: paul_xedos
date: 2007-12-06T14:57:33-00:00

Re: mem intensive apps such as firefox fail despite kmem changes
type: item
description: Hi Paul, Sorry for confusing You, I mean You can set paramters to its maximal values (i.e. to MAX_INT, 2147483647) -- in this case it will limit nothing. thank You, Vasily Averin
creator: vaverin
date: 2007-12-07T05:28:09-00:00