OpenVZ Forum


Home » General » Support » Performance problem... Need help with setting UBC
Performance problem... Need help with setting UBC [message #15363] Sat, 28 July 2007 04:22 Go to next message
joelee is currently offline  joelee
Messages: 63
Registered: April 2006
Member
Hi All, I am experiencing some performance issues on my new OVZ setup. I have about 5 VPS created. I start to read about UBC but don't quite understand how to properly set UBC.

FYI, I have 4G available and not doing any user traffic right now. Thanks in advance for your help in fixing below!

Below is an output of cat/proc/ubc
ovz:~# cat /proc/user_beancounters
Version: 2.5

      201:  kmemsize        1565250    2322997    2752512    2936012          0
            lockedpages           0          0         32         32          0
            privvmpages       14748      24940      49152      53575          0
            shmpages           2562       2562       8192       8192          0
            dummy                 0          0          0          0          0
            numproc              26         43         65         65          0
            physpages          5553      10410          0 2147483647          0
            vmguarpages           0          0       6144 2147483647          0
            oomguarpages       5564      10410       6144 2147483647          0
            numtcpsock           16         30         80         80          0
            numflock              2          6        100        110          0
            numpty                0          0         16         16          0
            numsiginfo            0         11        256        256          0
            tcpsndbuf          3624      47736     319488     524288          0
            tcprcvbuf          1208     118472     319488     524288          0
            othersockbuf     122760     133080     132096     336896         49
            dgramrcvbuf           0      15992     132096     132096          0
            numothersock         80         96        120        120          0
            dcachesize            0          0    1048576    1097728          0
            numfile             691       1087       2048       2048          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            10         10        128        128          0

      101:  kmemsize        2716864    2776123    2752512    2936012       4591
            lockedpages           0          0         32         32          0
            privvmpages       29549      31686      49152      53575          0
            shmpages           2562       2562       8192       8192          0
            dummy                 0          0          0          0          0
            numproc              47         54         65         65          0
            physpages         15976      18053          0 2147483647          0
            vmguarpages           0          0       6144 2147483647          0
            oomguarpages      15976      18053       6144 2147483647          0
            numtcpsock           35         43         80         80          0
            numflock              3          6        100        110          0
            numpty                0          1         16         16          0
            numsiginfo            0         15        256        256          0
            tcpsndbuf         31248      65016     319488     524288          0
            tcprcvbuf          2416     110096     319488     524288          0
            othersockbuf     133040     138024     132096     336896     485483
            dgramrcvbuf           0      29112     132096     132096          0
            numothersock        104        117        120        120          0
            dcachesize            0          0    1048576    1097728          0
            numfile            1280       1462       2048       2048          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            10         10        128        128          0
        0:  kmemsize        2430594    3350828 2147483647 2147483647          0
            lockedpages           0          0 2147483647 2147483647          0
            privvmpages        2886      11182 2147483647 2147483647          0
            shmpages            657       1313 2147483647 2147483647          0
            dummy                 0          0 2147483647 2147483647          0
            numproc              48         69 2147483647 2147483647          0
            physpages          1369       8795 2147483647 2147483647          0
            vmguarpages           0          0 2147483647 2147483647          0
            oomguarpages       1369       8795 2147483647 2147483647          0
            numtcpsock            2          3 2147483647 2147483647          0
            numflock              1          2 2147483647 2147483647          0
            numpty                1          2 2147483647 2147483647          0
            numsiginfo            1          4 2147483647 2147483647          0
            tcpsndbuf         29016      37944 2147483647 2147483647          0
            tcprcvbuf         32768      16384 2147483647 2147483647          0
            othersockbuf      11160      15152 2147483647 2147483647          0
            dgramrcvbuf           0       8376 2147483647 2147483647          0
            numothersock         18         23 2147483647 2147483647          0
            dcachesize            0          0 2147483647 2147483647          0
            numfile             853       1216 2147483647 2147483647          0
            dummy                 0          0 2147483647 2147483647          0
            dummy                 0          0 2147483647 2147483647          0
            dummy                 0          0 2147483647 2147483647          0
            numiptent            10         10 2147483647 2147483647          0


Joe
Re: Performance problem... Need help with setting UBC [message #15364 is a reply to message #15363] Sat, 28 July 2007 04:35 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
which ubc metric do you not understand?

can you be more specific about the performance problem?

ie, performance problem != ubc overage


Rick


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: Performance problem... Need help with setting UBC [message #15368 is a reply to message #15363] Sat, 28 July 2007 10:12 Go to previous messageGo to next message
den is currently offline  den
Messages: 494
Registered: December 2005
Senior Member
VPS 101 has 80 "other" sockets currently. Other sockets are:
- unix domain
- UDP
- netlink
- packet
- raw IP
- etc

Lets consider Unix domain sockets as an example. In order to function efficiently, they should have something like 64 kb of buffer space. So, the limit should be configured to 64 * 104 = ~6.5MB. You have only 130kb set.

Also VPS 101 has a kernel memory shortage. Lets start from sockets Smile. You have 104 + 35 = 139. They consume something like 1MB of kernel memory. There are 35 processes. They also consume 1MB of kernel memory (I have a number of 6 pages per/process as a minimum). There are other consumers like open files etc. So, the limit should be definitely higher.

I think this will help you Smile

Regards,
Den
Re: Performance problem... Need help with setting UBC [message #15413 is a reply to message #15363] Mon, 30 July 2007 10:02 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

I guess http://wiki.openvz.org/Resource_shortage will answer most of your questions. Do not forget to run vzcfgvalidate after changing your VE config.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: /dev/console virtualization, somehow?
Next Topic: Speed up copy
Goto Forum:
  


Current Time: Sun Jun 01 15:25:51 GMT 2025

Total time taken to generate the page: 0.02481 seconds