[Users] apt-mirror does not work under OpenVZ

Peter Senna Tschudin peter.senna at gmail.com
Sun Jul 18 18:05:20 EDT 2010


Hi Michael,

Thanks for the help!

>Probably a resource exhaustion problem, especially when you are talking
>about "lots of wget processes".  Look in /proc/user_beancounters in the
>container and see if you have anything that is non-zero in the "failcnt"
>column like tcpsndbuf, tcpsndbuf, or numtcpsock.  Typically, I've found
>the defaults for those resources to be particularly anemic, especially
>when you've got a lot of network activity as in this case.  Any resource
>with any non-zero failcnt should be increased in size significantly
>(multiply by 8 or more) using vzctl set {veid} [resource=...] --save.

Yes, you are right! See:

Before running apt-mirror:

[root at homeserver /]# cat /proc/user_beancounters
Version: 2.5
	uid	resource			held		maxheld		barrier		limit		failcnt
...
		privvmpages		10870	13641		65536		131072	0
...

After run apt-mirror and get error:

[root at homeserver /]# cat /proc/user_beancounters
Version: 2.5
	uid	resource			held		maxheld		barrier		limit		failcnt
...
		privvmpages		10895	67418		65536		131072	24

I found 24 failures for privvmpages. I added same number * 4 and it is working!

Thank you! :-)

Peter

P.S. In your instructions is missing "--" before resource to set
different values.

--
Peter Senna Tschudin
peter.senna at gmail.com
gpg id: 48274C36



More information about the Users mailing list