OpenVZ Forum


Home » Mailing lists » Devel » vmalloc size (trobles with nvidia-glx)
vmalloc size (trobles with nvidia-glx) [message #29548] Wed, 16 April 2008 20:44 Go to next message
Alexander GQ Gerasiov is currently offline  Alexander GQ Gerasiov
Messages: 8
Registered: April 2008
Junior Member
Hello there.

I'm using OpenVZ on my desktop, where I use nvidia-glx. When I tried to
switch to OpenVZ I met strange problem: Xserver fails to start with
message

(EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device PCI:1:0:0.
(EE) NVIDIA(0):     Please see the COMMON PROBLEMS section in the README for
(EE) NVIDIA(0):     additional information.
(EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!

After digging a bit, I found that the problem is in the failed vmalloc
call. nvidia want ~70M of memory and together with openvz they ran out
of default limit in 128M.
So the 1st question: is that normal, that OpenVZ without any VE eats
45Mb more memory from vmalloc space, that default kernel?
If that's normal, what for? (Just interesting.)
And if that's normal, may be you should override default limit in
OpenVZ patch? For now I used vmalloc=256m in kernel's command line, but
this is not trivial to found out the problem for normal not skilled
user.

-- 
Best regards,
 Alexander GQ Gerasiov

 Contacts:
 e-mail:    gq@cs.msu.su             Jabber:  gq@jabber.ru
 Homepage:  http://gq.net.ru         ICQ:     7272757
 PGP fingerprint: 0628 ACC7 291A D4AA 6D7D  79B8 0641 D82A E3E3 CE1D
Re: vmalloc size (trobles with nvidia-glx) [message #29581 is a reply to message #29548] Thu, 17 April 2008 14:00 Go to previous message
Kirill Korotaev is currently offline  Kirill Korotaev
Messages: 137
Registered: January 2006
Senior Member
Can you please cat /proc/meminfo after loading OVZ kernel w/o NVIDIA driver?
It's strange and OVZ shouldn't allocate so much memory...
My only guess is that you have a lot of iptables rules which are allocated in vmalloc.

If not, plz create bug in bugzilla.

Alexander GQ Gerasiov wrote:
> Hello there.
> 
> I'm using OpenVZ on my desktop, where I use nvidia-glx. When I tried to
> switch to OpenVZ I met strange problem: Xserver fails to start with
> message
> 
> (EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device PCI:1:0:0.
> (EE) NVIDIA(0):     Please see the COMMON PROBLEMS section in the README for
> (EE) NVIDIA(0):     additional information.
> (EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!
> 
> After digging a bit, I found that the problem is in the failed vmalloc
> call. nvidia want ~70M of memory and together with openvz they ran out
> of default limit in 128M.
> So the 1st question: is that normal, that OpenVZ without any VE eats
> 45Mb more memory from vmalloc space, that default kernel?
> If that's normal, what for? (Just interesting.)
> And if that's normal, may be you should override default limit in
> OpenVZ patch? For now I used vmalloc=256m in kernel's command line, but
> this is not trivial to found out the problem for normal not skilled
> user.
>
Re: vmalloc size (trobles with nvidia-glx) [message #29664 is a reply to message #29548] Thu, 17 April 2008 05:43 Go to previous message
Vasily Averin is currently offline  Vasily Averin
Messages: 17
Registered: April 2008
Junior Member
Hi Alexander,

Alexander GQ Gerasiov wrote:
> Hello there.
> 
> I'm using OpenVZ on my desktop, where I use nvidia-glx. When I tried to
> switch to OpenVZ I met strange problem: Xserver fails to start with
> message
> 
> (EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device PCI:1:0:0.
> (EE) NVIDIA(0):     Please see the COMMON PROBLEMS section in the README for
> (EE) NVIDIA(0):     additional information.
> (EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!
> 
> After digging a bit, I found that the problem is in the failed vmalloc
> call. nvidia want ~70M of memory and together with openvz they ran out
> of default limit in 128M.

Thank You very much for Your investigation. We have got several reports about
huge vmalloc allocations but did not have access to the customers nodes and were
not able to investigate such cases.

> So the 1st question: is that normal, that OpenVZ without any VE eats
> 45Mb more memory from vmalloc space, that default kernel?
> If that's normal, what for? (Just interesting.)

It is unexpected for me.
OpenVz kernel can use  a bit more vmalloc than ususal kernel -- but 45Mb is too
high usage IMHO.

That is  vmalloc usage from our test node where 19 VEs are running
(rhel5 based kernel 2.6.18-028stab053.10-ent, node with 512 Mb RAM)
[root@vzlin30 ~]# cat /proc/meminfo | grep Vmalloc
VmallocTotal:  3637240 kB
VmallocUsed:     19224 kB
VmallocChunk:  3617844 kB

As you can see only 19 Mb Vmalloc is used.

> And if that's normal, may be you should override default limit in
> OpenVZ patch? For now I used vmalloc=256m in kernel's command line, but
> this is not trivial to found out the problem for normal not skilled
> user.

Could You please tell me a bit more details about Your node/kernel?

thank you,
	Vasily Averin
Previous Topic: openvz: pull request
Next Topic: [PATCH]: Propagate error code from devpts_pty_new
Goto Forum:
  


Current Time: Mon Jul 15 04:04:17 GMT 2024

Total time taken to generate the page: 0.02338 seconds