OpenVZ Forum


Home » General » Support » CT: failed to start with err=-12 (Memory error)
CT: failed to start with err=-12 [message #37846] Wed, 28 October 2009 07:25 Go to next message
lours is currently offline  lours
Messages: 5
Registered: October 2009
Junior Member
Hie,

I have CT: 150: failed to start with err=-12 on my server and ENOMEM (Cannot allocate memory) in strace

VT 101 to 149 works without trouble but 150 fail to start, so i have currently 49 virtuals running

I think i have enough memory and i can't find where is the problem.

Can somebody help me

Server : Ubuntu TLS 8.04 on power Edge 620
# free
             total       used       free     shared    buffers     cached
Mem:       8171912    4117748    4054164          0     149988    1683428
-/+ buffers/cache:    2284332    5887580
Swap:      1951856      46380    1905476


With /var/lib/vz link in /home/vz
# df -h
Sys. de fich.            Tail. Occ. Disp. %Occ. Monté sur
/dev/sda1             9,3G  5,3G  3,6G  60% /
varrun                3,9G   88K  3,9G   1% /var/run
varlock               3,9G     0  3,9G   0% /var/lock
udev                  3,9G   76K  3,9G   1% /dev
devshm                3,9G     0  3,9G   0% /dev/shm
lrm                   3,9G   47M  3,9G   2% /lib/modules/2.6.24-25-openvz/volatile
/dev/sda8             113G   32G   76G  30% /home
/dev/sda7             1,9G   35M  1,8G   2% /tmp
/dev/sda6             9,3G  1,6G  7,3G  18% /var/log


ulimit are default ubuntu
# ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 71680
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 71680
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited


Output of vzmemcheck

#vzmemcheck -v
veid        LowMem  LowMem     RAM MemSwap MemSwap   Alloc   Alloc   Alloc
              util  commit    util    util  commit    util  commit   limit
102           0.19    0.70    0.25    0.20    0.67    0.38    0.67    3.18
101           0.04    0.70    0.14    0.11    0.67    0.14    0.67    3.18
149           0.05    0.70    0.17    0.14    0.67    0.17    0.67    3.18
148           0.10    0.70    0.22    0.18    0.67    0.25    0.67    3.18
147           0.05    0.70    0.17    0.14    0.67    0.17    0.67    3.18
146           0.05    0.70    0.17    0.14    0.67    0.17    0.67    3.18
145           0.05    0.70    0.17    0.14    0.67    0.17    0.67    3.18
144           0.05    0.70    0.17    0.14    0.67    0.17    0.67    3.18
143           0.10    0.70    0.73    0.59    0.67    0.65    0.67    3.18
142           0.10    0.70    0.67    0.54    0.67    0.60    0.67    3.18
141           0.05    0.70    0.17    0.14    0.67    0.17    0.67    3.18
140           0.05    0.70    0.17    0.14    0.67    0.17    0.67    3.18
139           0.11    0.70    0.70    0.57    0.67    0.63    0.67    3.18
138           0.12    0.70    0.98    0.79    0.67    0.85    0.67    3.18
137           0.08    0.70    0.19    0.16    0.67    0.22    0.67    3.18
136           0.05    0.70    0.17    0.14    0.67    0.17    0.67    3.18
135           0.10    0.70    0.30    0.24    0.67    0.32    0.67    3.18
134           0.11    0.70    0.77    0.62    0.67    0.69    0.67    3.18
133           0.07    0.70    0.18    0.15    0.67    0.20    0.67    3.18
132           0.10    0.70    0.39    0.31    0.67    0.39    0.67    3.18
131           0.05    0.70    0.17    0.14    0.67    0.17    0.67    3.18
130           0.07    0.70    0.28    0.23    0.67    0.27    0.67    3.18
129           0.10    0.70    0.34    0.27    0.67    0.35    0.67    3.18
128           0.05    0.70    0.17    0.14    0.67    0.17    0.67    3.18
127           0.10    0.70    0.24    0.20    0.67    0.28    0.67    3.18
126           0.05    0.70    0.17    0.14    0.67    0.17    0.67    3.18
125           0.05    0.70    0.17    0.14    0.67    0.17    0.67    3.18
124           0.11    0.70    1.36    1.10    0.67    1.16    0.67    3.18
123           0.10    0.70    0.97    0.78    0.67    0.85    0.67    3.18
122           0.10    0.70    0.86    0.70    0.67    0.77    0.67    3.18
121           0.10    0.70    0.35    0.28    0.67    0.36    0.67    3.18
120           0.10    0.70    0.81    0.65    0.67    0.72    0.67    3.18
119           0.10    0.70    0.67    0.54    0.67    0.60    0.67    3.18
118           0.11    0.70    0.87    0.70    0.67    0.78    0.67    3.18
117           0.10    0.70    0.83    0.67    0.67    0.74    0.67    3.18
116           0.11    0.70    0.63    0.51    0.67    0.57    0.67    3.18
115           0.10    0.70    0.51    0.41    0.67    0.48    0.67    3.18
114           0.10    0.70    0.71    0.58    0.67    0.64    0.67    3.18
113           0.05    0.70    0.17    0.14    0.67    0.17    0.67    3.18
112           0.10    0.70    0.87    0.70    0.67    0.77    0.67    3.18
111           0.11    0.70    0.82    0.66    0.67    0.73    0.67    3.18
110           0.10    0.70    0.79    0.63    0.67    0.70    0.67    3.18
109           0.07    0.70    0.19    0.15    0.67    0.47    0.67    3.18
108           0.11    0.70    1.35    1.09    0.67    1.16    0.67    3.18
107           0.10    0.70    1.25    1.01    0.67    1.07    0.67    3.18
106           0.05    0.70    0.17    0.14    0.67    0.17    0.67    3.18
105           0.05    0.70    0.17    0.14    0.67    0.17    0.67    3.18
104           0.05    0.70    0.17    0.14    0.67    0.17    0.67    3.18
103           0.09    0.70    0.75    0.61    0.67    0.67    0.67    3.18
-------------------------------------------------------------------------
Summary:      4.13   34.30   23.73   19.16   33.03   22.25   33.03  155.96



The configuration ws created whith vzsplit -n 150, attached below

In attachement the trace log
#strace -fv vzctl start 150


Please can't someone tail me what a miss

Thanks

[Updated on: Wed, 28 October 2009 07:47]

Report message to a moderator

Re: CT: failed to start with err=-12 [message #37847 is a reply to message #37846] Wed, 28 October 2009 07:54 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Anything relevant in dmesg? The error comes from the kernel so it probably reported something.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png

[Updated on: Wed, 28 October 2009 07:54]

Report message to a moderator

Re: CT: failed to start with err=-12 [message #37849 is a reply to message #37847] Wed, 28 October 2009 08:09 Go to previous messageGo to next message
lours is currently offline  lours
Messages: 5
Registered: October 2009
Junior Member
Thanks for your quick reply

At boot dmesg :
...
...
[  361.481184] CT: 146: started
[  367.030585] CT: 147: started
[  372.870115] CT: 148: started
[  381.879666] CT: 149: started
[  386.904125] CT: 150: stopped
[  386.904134] CT: 150: failed to start with err=-12
[  397.295365] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)



after vzctl start 150
[ 1389.367354] CT: 150: stopped
[ 1389.367367] CT: 150: failed to start with err=-12
Re: CT: failed to start with err=-12 [message #37852 is a reply to message #37849] Wed, 28 October 2009 09:30 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

What is your kernel version? (uname -a, cat /proc/vz/version)

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: CT: failed to start with err=-12 [message #37853 is a reply to message #37852] Wed, 28 October 2009 09:49 Go to previous messageGo to next message
lours is currently offline  lours
Messages: 5
Registered: October 2009
Junior Member
# cat /etc/issue
Ubuntu 8.04.3 LTS

#  uname -a
Linux www 2.6.24-25-openvz #1 SMP Tue Oct 20 09:23:00 UTC 2009 x86_64 GNU/Linux

# cat /proc/vz/version
ovz005


Thanks
Re: CT: failed to start with err=-12 [message #37854 is a reply to message #37853] Wed, 28 October 2009 10:32 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

This verion is way too old. I'm not sure what to do here. Maybe it makes sense for you to try the RHEL5-based kernel (http://wiki.openvz.org/Download/kernel/rhel5). Yup I know you are on Ubuntu, maybe you'll have luck using alien to convert the kernel rpm to deb.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
[Solved] Re: CT: failed to start with err=-12 [message #38051 is a reply to message #37846] Thu, 12 November 2009 08:40 Go to previous messageGo to next message
lours is currently offline  lours
Messages: 5
Registered: October 2009
Junior Member
I've found what was wrong, in ubuntu kernel i have to remove

From
========
CONFIG_AF_RXRPC=m
# CONFIG_AF_RXRPC_DEBUG is not set
CONFIG_RXKAD=m u
CONFIG_ECRYPT_FS=m
CONFIG_AFS_FS=m
# CONFIG_AFS_DEBUG is not set
CONFIG_KEYS=y
# CONFIG_KEYS_DEBUG_PROC_KEYS is not set

To
======================
# CONFIG_AF_RXRPC is not set
# CONFIG_AFS_FS is not set
# CONFIG_KEYS is not set


And it works!!!

This remove the 50 limits of vz machine

Thanks
Re: [Solved] Re: CT: failed to start with err=-12 [message #38289 is a reply to message #38051] Fri, 04 December 2009 08:16 Go to previous messageGo to next message
seniorgregor is currently offline  seniorgregor
Messages: 1
Registered: December 2009
Junior Member
Confirmed, using Ubuntu Server 8.04 LTS, kernel 2.6.24-25-openvz. Thanks lours!
Re: [Solved] Re: CT: failed to start with err=-12 [message #38843 is a reply to message #38051] Thu, 11 February 2010 10:53 Go to previous messageGo to next message
bainonline is currently offline  bainonline
Messages: 1
Registered: February 2010
Junior Member
Hi i am stuck with the same problem

However i don't undrestand your solution...
Did you recompile the kernel with the above configuration you posted?
Re: [Solved] Re: CT: failed to start with err=-12 [message #38851 is a reply to message #38843] Thu, 11 February 2010 19:01 Go to previous message
lours is currently offline  lours
Messages: 5
Registered: October 2009
Junior Member
Yes you have to rebuild the kernel
I used the instructions from :

https://help.ubuntu.com/community/Kernel/Compile


Look at the section
"Modify the source for your needs"

The modification have to be made in :
/usr/src/linux-2.6.24/debian/binary-custom.d/openvz/config.a md64 (or i386)
Previous Topic: Several Webserver
Next Topic: Processes in D state
Goto Forum:
  


Current Time: Thu Aug 15 07:21:14 GMT 2024

Total time taken to generate the page: 0.02886 seconds