OpenVZ Forum


Home » General » Support » VZ very slow
VZ very slow [message #40431] Tue, 17 August 2010 23:11 Go to next message
pppplus is currently offline  pppplus
Messages: 3
Registered: August 2010
Junior Member
Hi,

From some days, I try to configure a new server, with openvz.
Not so hard, google is very helpfull.

But to finish, and optimize Container and main Server, it is a little hard, and I find some "strange" things.

OpenVz is know as consuming only few ressources. And for me, it is not the case.

Generally :
surfing on website is ok.
The rest is often, very slow, for exemple using DirecAdmin panel.

An exemple of message in Directadmin :
Your connection has timed out
Détails
Either your request was invalid or the program hasn't completed your request.
Please notify the server admin
Or just a command like
yum install <something> is very very long.

Server is 4x 2x 2.66+ GHz with RAM 12Go.
Linux ks312650.kimsufi.com 2.6.18-194.8.1.el5.028stab070.2 #1 SMP Tue Jul 6 14:55:39 MSD 2010 x86_64 x86_64 x86_64 GNU/Linux


Only one website is running on one container. Ok, there is a lot of connection, but this website took 25% of ressources of the previous server (2*2*2.33Ghz + RAM 4Go - not with openvz), so not so big.

Top of server :
top - 11:48:44 up 3 days, 20 min,  2 users,  load average: 15.75, 17.55, 22.91
Tasks: 810 total,   1 running, 802 sleeping,   0 stopped,   7 zombie
Cpu(s):  0.8%us,  0.3%sy,  0.0%ni, 83.2%id, 15.6%wa,  0.0%hi,  0.1%si,  0.0%st
Mem:  12264092k total, 11915708k used,   348384k free,   386932k buffers
Swap: 12289704k total,       16k used, 12289688k free, 10270064k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
20612 48        15   0 98152 8748 3228 S  0.7  0.1   0:00.42 httpd
22643 48        15   0 98172 8752 3220 S  0.7  0.1   0:00.14 httpd
22771 48        15   0 98160 8600 3136 S  0.7  0.1   0:00.15 httpd
23007 root      15   0 13272 1684  800 R  0.7  0.0   0:00.06 top
 6797 101       17   0  396m  54m 5040 S  0.3  0.5   0:42.96 mysqld
20586 48        15   0 98416 8932 3156 D  0.3  0.1   0:00.46 httpd
20929 48        15   0 98416 9028 3244 S  0.3  0.1   0:00.31 httpd
22655 48        15   0 98152 8808 3232 D  0.3  0.1   0:00.13 httpd
22658 48        15   0 98160 8708 3136 D  0.3  0.1   0:00.15 httpd
22664 48        15   0 98416 8972 3204 S  0.3  0.1   0:00.15 httpd
22670 48        15   0 98160 8692 3156 D  0.3  0.1   0:00.15 httpd
22682 48        15   0 98152 8676 3132 S  0.3  0.1   0:00.14 httpd
22716 48        15   0 98160 8632 3168 S  0.3  0.1   0:00.14 httpd
22718 48        15   0 98416 8696 3156 D  0.3  0.1   0:00.12 httpd
22727 48        15   0 98448 8940 3216 D  0.3  0.1   0:00.15 httpd
22750 48        18   0 98160 8724 3212 S  0.3  0.1   0:00.13 httpd
22760 48        18   0 98416 8924 3212 S  0.3  0.1   0:00.15 httpd
    1 root      15   0 10348  700  588 S  0.0  0.0   0:01.04 init
    2 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0/0
    3 root      39  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0
    4 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0/1
    5 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/1
    6 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0/2
    7 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/2
    8 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0/3
    9 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/3
   10 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0/4
   11 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/4
   12 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0/5
   13 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/5
   14 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0/6
   15 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/6
   16 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0/7
   17 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/7
   18 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 events/0
   19 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 events/1
   20 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 events/2
   21 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 events/3
   22 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 events/4
   23 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 events/5
   24 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 events/6
   25 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 events/7
   26 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
  131 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kthread
  142 root      10  -5     0    0    0 S  0.0  0.0   0:00.14 kblockd/0
  143 root      10  -5     0    0    0 S  0.0  0.0   0:00.15 kblockd/1
  144 root      10  -5     0    0    0 S  0.0  0.0   0:00.14 kblockd/2

What is strange for me :
=> high load average and only few cpu %

I prepare 3 containers.
1 is working
1 is connected but without domains or trafis
1 is not active (IP is used on another server) but start.

Top of 1 Container working :
top - 11:52:26 up 1 day, 20:17,  0 users,  load average: 3.52, 7.69, 13.52
Tasks: 116 total,   2 running, 106 sleeping,   0 stopped,   8 zombie
Cpu(s):  1.6%us,  0.5%sy,  0.0%ni, 94.3%id,  3.6%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   7358452k total,   590040k used,  6768412k free,        0k buffers
Swap:        0k total,        0k used,        0k free,        0k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 7821 mysql     17   0  396m  54m 5040 S  1.0  0.8   0:44.81 mysqld
25779 apache    15   0 98408 8792 3168 S  1.0  0.1   0:00.18 httpd
25929 apache    15   0 98152 8576 3120 S  1.0  0.1   0:00.06 httpd
24342 apache    15   0 98432 8912 3180 S  0.7  0.1   0:00.37 httpd
24355 apache    16   0 98192 8716 3172 S  0.7  0.1   0:00.30 httpd
24401 apache    16   0 98408 8828 3184 S  0.7  0.1   0:00.36 httpd
24410 apache    15   0 98416 8748 3188 S  0.7  0.1   0:00.39 httpd
25928 apache    15   0 98416 8748 3136 S  0.7  0.1   0:00.04 httpd
17766 root      15   0 12740 1344  916 R  0.3  0.0   0:01.06 top
24253 apache    15   0 98416 8784 3184 S  0.3  0.1   0:00.33 httpd
24256 apache    15   0 98160 8724 3196 S  0.3  0.1   0:00.39 httpd
24257 apache    15   0 98408 8760 3160 S  0.3  0.1   0:00.34 httpd
24259 apache    15   0 98408 8740 3164 S  0.3  0.1   0:00.40 httpd
24313 apache    15   0 98408 8908 3220 S  0.3  0.1   0:00.36 httpd
24321 apache    15   0 98160 8832 3244 S  0.3  0.1   0:00.39 httpd
24331 apache    15   0 98424 8808 3168 S  0.3  0.1   0:00.33 httpd
24340 apache    15   0 98160 9028 3556 S  0.3  0.1   0:00.35 httpd
24358 apache    15   0 98160 8736 3180 S  0.3  0.1   0:00.36 httpd
24359 apache    15   0 98408 8728 3160 S  0.3  0.1   0:00.36 httpd
24383 apache    15   0 98416 8868 3184 S  0.3  0.1   0:00.36 httpd
25738 apache    15   0 98152 8684 3164 S  0.3  0.1   0:00.23 httpd
25776 apache    15   0 98152 8732 3160 S  0.3  0.1   0:00.13 httpd
25777 apache    15   0 98152 8724 3152 S  0.3  0.1   0:00.14 httpd
25782 apache    15   0 98416 8684 3164 S  0.3  0.1   0:00.14 httpd
25785 apache    15   0 98152 8692 3228 S  0.3  0.1   0:00.16 httpd
25786 apache    18   0 98160 8728 3176 S  0.3  0.1   0:00.13 httpd
25816 apache    15   0 98416 8720 3168 S  0.3  0.1   0:00.14 httpd
25843 apache    15   0 98408 8664 3140 S  0.3  0.1   0:00.07 httpd
25861 apache    15   0 98160 8648 3128 S  0.3  0.1   0:00.06 httpd
25862 apache    15   0 98152 8712 3160 S  0.3  0.1   0:00.10 httpd
25863 apache    15   0 98152 8628 3160 S  0.3  0.1   0:00.08 httpd
25864 apache    15   0 98152 8656 3204 S  0.3  0.1   0:00.07 httpd
25865 apache    15   0 98160 8600 3136 R  0.3  0.1   0:00.05 httpd
25868 apache    15   0 98160 8692 3224 S  0.3  0.1   0:00.05 httpd
25924 apache    16   0 98416 8780 3160 S  0.3  0.1   0:00.08 httpd
25925 apache    15   0 98424 8640 3132 S  0.3  0.1   0:00.04 httpd
25942 apache    15   0 98112 8496 3068 S  0.3  0.1   0:00.02 httpd
    1 root      18   0 10348  744  624 S  0.0  0.0   0:00.05 init
 1500 dovecot   15   0     0    0    0 Z  0.0  0.0   0:00.00 pop3-login <defunct>
 6097 dovecot   18   0     0    0    0 Z  0.0  0.0   0:00.00 pop3-login <defunct>
 7186 root      18   0 75024  25m 1392 S  0.0  0.4   0:04.69 lfd
 7443 dovecot   15   0     0    0    0 Z  0.0  0.0   0:00.00 pop3-login <defunct>
 7797 root      18   0 11928 1400 1160 S  0.0  0.0   0:00.00 mysqld_safe
 9627 dovecot   18   0 38188 2332 1832 S  0.0  0.0   0:00.00 pop3-login
11838 dovecot   15   0     0    0    0 Z  0.0  0.0   0:00.00 pop3-login <defunct>
12091 dovecot   18   0 38188 2332 1832 S  0.0  0.0   0:00.00 pop3-login
14328 named     23   0  220m 4740 2056 S  0.0  0.1   0:19.09 named
16026 root      15   0 11204  344  216 S  0.0  0.0   0:00.03 vzctl
16027 root      16   0 12064 1612 1264 S  0.0  0.0   0:00.01 bash
18189 mail      15   0 61992 1292  688 S  0.0  0.0   0:00.00 exim

Some strange dovecot - pop3-login running
Often load average, 10-20, but always very few cpu%
Often, impossible to connect via FTP connect to read emails
Navigation in DirectAdmin very slow. Almost impossible to decompress Backups.
But navigation http without problem, very quick.

Top of 1 Container connected, but without domains, trafic :
top - 14:02:49 up 1 day, 17:00,  0 users,  load average: 0.65, 0.43, 0.55
Tasks:  65 total,   1 running,  64 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   7358452k total,   336764k used,  7021688k free,        0k buffers
Swap:        0k total,        0k used,        0k free,        0k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
    1 root      15   0 10348  736  620 S  0.0  0.0   0:00.05 init
 3233 ftp       15   0  8800 1188  744 S  0.0  0.0   0:00.02 proft
...

Re: VZ very slow [message #40451 is a reply to message #40431] Thu, 19 August 2010 18:48 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

plz show the ubc (=userbeancounters) of ct,

like

$ cat /proc/user_beancounters
or
$ cat /proc/bc/<CTID>/resources

any fail logged ?

Bye,
Thorsten
Re: VZ very slow [message #40455 is a reply to message #40431] Thu, 19 August 2010 21:34 Go to previous message
pppplus is currently offline  pppplus
Messages: 3
Registered: August 2010
Junior Member
Hi, and thanks for your reply.

I have no more user_beancounters.
I delete all VPS, and come back to a "normal" web hosting.

Just one thing, I have only few kmemory failcnt at the beginning. After some modifications, it was ok.

Just system was always very slow.
It was exactly the same, with openvz or proxmox, but the 2 systems are almost the same.

Maybe because I use 64bits system, I don't know. I only try with centos 5 64 bits, because I have only licence for this panel for directadmin.

I will try later, with another server, so if you have some explanations...

Best regards
Previous Topic: Out of band console access
Next Topic: Do what vmware can't (?)
Goto Forum:
  


Current Time: Sun Nov 17 10:26:57 GMT 2024

Total time taken to generate the page: 0.03017 seconds