OpenVZ Forum


Home » General » Support » *SOLVED* VE Network hangs
*SOLVED* VE Network hangs [message #13823] Wed, 06 June 2007 11:01 Go to next message
mdekkers is currently offline  mdekkers
Messages: 8
Registered: June 2007
Junior Member
Hi All,

Debian Etch, running etch's standard openvz install. create a bunch of VE's, all work fine. Standard iptables, NAT, etc - network access works.

apt-get install from within a VE, the download will hang. apt needs to be restarted several times to get the whole file down. No such problems from the HN. I am pretty new to OpenVZ, and am mainly used to Xen and VMWare.

running wget on the commandline doesnt show this issue.
Any pointers?

[Updated on: Thu, 07 June 2007 06:34] by Moderator

Report message to a moderator

Re: VE Network hangs [message #13830 is a reply to message #13823] Wed, 06 June 2007 11:27 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hmmm... kernel version please. And can you please attach here the strace of apt-get here?

Thank you,
Vasily.
Re: VE Network hangs [message #13833 is a reply to message #13830] Wed, 06 June 2007 12:08 Go to previous messageGo to next message
mdekkers is currently offline  mdekkers
Messages: 8
Registered: June 2007
Junior Member
uname -a Linux <somehost> 2.6.18-openvz-12-1-686 #1 SMP Tue May 1 04:59:12 CEST 2007 i686 GNU/Linux

last bit of strace for apt-get install tetex-base:

read(13, "102 Status\nURI: http://http.us.d"..., 64000) = 127
select(14, [13], [], NULL, {0, 472000}) = 1 (in [13], left {0, 444000})
read(13, "200 URI Start\nURI: http://http.u"..., 64000) = 159
Get:1 http://http.us.debian.org etch/main tex-common 1.0.1 [708kB]
) = 81
stat64("/var/cache/apt/archives/partial/tex-common_1.0.1_all.deb", {st_mode=S_IFREG|0644, st_size=1151, ...}) = 0
gettimeofday({1181131516, 123310}, NULL) = 0
rt_sigprocmask(SIG_BLOCK, [WINCH], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
0% [1 tex-common 1151/708kB 0%]) = 45ommon 1"..., 45
select(14, [13], [], NULL, {0, 500000}) = 0 (Timeout)
stat64("/var/cache/apt/archives/partial/tex-common_1.0.1_all.deb", {st_mode=S_IFREG|0644, st_size=506503, ...}) = 0
gettimeofday({1181131516, 625780}, NULL) = 0
rt_sigprocmask(SIG_BLOCK, [WINCH], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
2% [1 tex-common 506503/708kB 71%]) = 67   "..., 67
select(14, [13], [], NULL, {0, 500000}) = 1 (in [13], left {0, 332000})
read(13, "201 URI Done\nURI: http://http.us"..., 64000) = 454
rename("/var/cache/apt/archives/partial/tex-common_1.0.1_all.deb", "/var/cache/apt/archives/tex-common_1.0.1_all.deb") = 0
gettimeofday({1181131516, 796795}, NULL) = 0
rt_sigprocmask(SIG_BLOCK, [WINCH], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
3% [Waiting for headers]) = 60             "..., 60
select(14, [13], [], NULL, {0, 500000}) = 1 (in [13], left {0, 500000})
read(13, "200 URI Start\nURI: http://http.u"..., 64000) = 168
Get:2 http://http.us.debian.org etch/main tetex-base 3.0.dfsg.3-5 [22.4MB]
) = 101
stat64("/var/cache/apt/archives/partial/tetex-base_3.0.dfsg.3-5_all.deb", {st_mode=S_IFREG|0644, st_size=1221, ...}) = 0
gettimeofday({1181131516, 798379}, NULL) = 0
rt_sigprocmask(SIG_BLOCK, [WINCH], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
3% [2 tetex-base 1221/22.4MB 0%]) = 583% [2 "..., 58
select(14, [13], [], NULL, {0, 500000}) = 0 (Timeout)
stat64("/var/cache/apt/archives/partial/tetex-base_3.0.dfsg.3-5_all.deb", {st_mode=S_IFREG|0644, st_size=593453, ...}) = 0
gettimeofday({1181131517, 301690}, NULL) = 0
rt_sigprocmask(SIG_BLOCK, [WINCH], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
5% [2 tetex-base 593453/22.4MB 2%]) = 68   "..., 68
select(14, [13], [], NULL, {0, 500000}) = 0 (Timeout)
stat64("/var/cache/apt/archives/partial/tetex-base_3.0.dfsg.3-5_all.deb", {st_mode=S_IFREG|0644, st_size=1184237, ...}) = 0
gettimeofday({1181131517, 804380}, NULL) = 0
rt_sigprocmask(SIG_BLOCK, [WINCH], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
8% [2 tetex-base 1184237/22.4MB 5%]) = 71  "..., 71
select(14, [13], [], NULL, {0, 500000}) = 0 (Timeout)
stat64("/var/cache/apt/archives/partial/tetex-base_3.0.dfsg.3-5_all.deb", {st_mode=S_IFREG|0644, st_size=1773573, ...}) = 0
gettimeofday({1181131518, 306289}, NULL) = 0
rt_sigprocmask(SIG_BLOCK, [WINCH], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
10% [2 tetex-base 1773573/22.4MB 7%]) = 73 "..., 73
select(14, [13], [], NULL, {0, 500000}) = 0 (Timeout)
stat64("/var/cache/apt/archives/partial/tetex-base_3.0.dfsg.3-5_all.deb", {st_mode=S_IFREG|0644, st_size=1828597, ...}) = 0
gettimeofday({1181131518, 806430}, NULL) = 0
rt_sigprocmask(SIG_BLOCK, [WINCH], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
10% [2 tetex-base 1828597/22.4MB 8%]) = 37M"..., 37
select(14, [13], [], NULL, {0, 500000}) = 0 (Timeout)
stat64("/var/cache/apt/archives/partial/tetex-base_3.0.dfsg.3-5_all.deb", {st_mode=S_IFREG|0644, st_size=1828597, ...}) = 0
gettimeofday({1181131519, 306365}, NULL) = 0
rt_sigprocmask(SIG_BLOCK, [WINCH], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
10% [2 tetex-base 1828597/22.4MB 8%]) = 37M"..., 37
select(14, [13], [], NULL, {0, 500000}) = 0 (Timeout)



It then goes on for a while being stuck at 8% - timeouts. this doesnt happen on the HN. Furthermore, this only happens with larger files, lots of smaller ones work fine.

Thanks for looking into this. Appreciated.

[Updated on: Wed, 06 June 2007 12:11]

Report message to a moderator

Re: VE Network hangs [message #13836 is a reply to message #13833] Wed, 06 June 2007 13:04 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Thanks,

two more questions, please:

1) is there something in /proc/user_beancounters _after_ stalled apt-get

2) the version of your kernel is 2.6.18-openvz-12-1-686... I guess it is some Debian versioning. Can you give me a link to some Debian web-page, where I can find out how to translate Debian version to OpenVZ one?

Thanks,
Vasily.
Re: VE Network hangs [message #13837 is a reply to message #13823] Wed, 06 June 2007 13:13 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

@Martijn: I think some network related bean_counter has been exceeded, like tcpsndbuf, tcprcvbuf ... etc.

@Vass:, this OpenVZ kernel version is built with OpenVZ Patch 028stab018.1

Re: VE Network hangs [message #13838 is a reply to message #13837] Wed, 06 June 2007 13:21 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Thorsten,

can you tell me however where can I get this information? Smile Probably some time you'll be not at forum, and then nobody will help me Wink BTW, why the versioning is so strange? I mean no mention about upstream version (018 in this case).

Vielen Dank,
Vasily.
Re: VE Network hangs [message #13839 is a reply to message #13838] Wed, 06 June 2007 13:40 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi Vasily,

> can you tell me however where can I get this information?
Yes, here:

file: linux-image-2.6.18-openvz-12-1etch1-686_028.18.1etch2_i386.d eb :

linux-image-2.6.18 -> linux-source-2.6.18 (debian)
-openvz-12-1etch1-686 -> append-to-version
028.18.1etch2 -> revision string, with OpenVZ patch 028(stab0).18.1

See debian packags info:
http://packages.debian.org/cgi-bin/search_packages.pl?search on=names&version=all&exact=1&keywords=kernel-pat ch-openvz

> Probably some time you'll be not at forum, and then nobody will help me

I'm really often here Wink, so make a knock ...

> BTW, why the versioning is so strange? I mean no mention about upstream version (018 in this case).

Please ask Ola about this, here put the patch sting to revison only.

[Updated on: Wed, 06 June 2007 13:41]

Report message to a moderator

Re: VE Network hangs [message #13841 is a reply to message #13836] Wed, 06 June 2007 13:47 Go to previous messageGo to next message
mdekkers is currently offline  mdekkers
Messages: 8
Registered: June 2007
Junior Member
Hi vasily,

thanks for your help:

root@<hostname>:/proc# cat user_beancounters
Version: 2.5
       uid  resource           held    maxheld    barrier      limit    failcnt
      666:  kmemsize         696833     781828    2752512    2936012          0
            lockedpages           0          0         32         32          0
            privvmpages       16728      19097      49152      53575          0
            shmpages              0          0       8192       8192          0
            dummy                 0          0          0          0          0
            numproc              17         18         65         65          0
            physpages          1663       3469          0 2147483647          0
            vmguarpages           0          0       6144 2147483647          0
            oomguarpages       1663       3469       6144 2147483647          0
            numtcpsock            3          4         80         80          0
            numflock              1          6        100        110          0
            numpty                2          2         16         16          0
            numsiginfo            0          3        256        256          0
            tcpsndbuf             0       4464     319488     524288          0
            tcprcvbuf             0     343728     319488     524288        318
            othersockbuf       4464       6696     132096     336896          0
            dgramrcvbuf           0       1208     132096     132096          0
            numothersock          2          5         80         80          0
            dcachesize            0          0    1048576    1097728          0
            numfile             336        350       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
root@corehost01:/proc#                                                            



Thanks
All just numbers to me...
Re: VE Network hangs [message #13842 is a reply to message #13841] Wed, 06 June 2007 13:58 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
you should increase tcprcvbuf paramater for your VE:
vzctl set 666 --tcprcvbuf 629488:1024288 --save

And then retry your apt-get operations...

BTW, read more about it. It's very important when using OpenVZ:
http://wiki.openvz.org/Resource_shortage

Vasily.
Re: VE Network hangs [message #13848 is a reply to message #13842] Wed, 06 June 2007 15:36 Go to previous message
mdekkers is currently offline  mdekkers
Messages: 8
Registered: June 2007
Junior Member
Hey Vasily,

Thanks again for your great help! This seems to have done the trick, brilliant!
Previous Topic: I/O Error
Next Topic: *RESOLVED* live-helper
Goto Forum:
  


Current Time: Thu Jul 25 22:25:01 GMT 2024

Total time taken to generate the page: 0.03321 seconds