OpenVZ Forum


Home » General » Support » git inside VPS fails on mmap
git inside VPS fails on mmap [message #30525] Wed, 28 May 2008 07:44 Go to previous message
pollux is currently offline  pollux
Messages: 13
Registered: September 2006
Junior Member
Hi,

I am trying to setup a git server inside a VPS. The git repository has fairly large objects (it's a local kernel tree).

The following error happens on git clone (using the git protocol):

2008-05-28_07:11:14.41523 [32100] Request upload-pack for '/git/linux-2.6.git'
2008-05-28_07:11:14.41641 fatal: packfile ./objects/pack/pack-95d32a83b9918b18223858e7349d5b64585b2a51.pack cannot be mapped.


Running stace on the git servers shows indeed a mmap failure with -ENOMEM:
[pid 32195] open("./objects/pack/pack-95d32a83b9918b18223858e7349d5b64585b2a51.pack", O_RDONLY) = 5
[pid 32195] fstat(5, {st_mode=S_IFREG|0444, st_size=155244017, ...}) = 0
[pid 32195] mmap(NULL, 155244017, PROT_READ, MAP_PRIVATE, 5, 0) = -1 ENOMEM (Cannot allocate memory)


Now what is weird is that I have no quota exceeded in /proc/user_beancounters (last columns is 0 everywhere). I have tried raising all quota to 9223372036854775807, no changes.

Any idea ?

Thanks

Host environment: 2.6.18-028stab053 x86_64
Guest OS: Debian Etch x86_64
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IPCop template
Next Topic: Mounting OCFS2 in a VE?
Goto Forum:
  


Current Time: Fri Sep 13 03:57:42 GMT 2024

Total time taken to generate the page: 0.05173 seconds