Thank you for help! It is exactly what I want. 2009/4/9 Markus Hennecke <[email protected]>: > Alexander Bubnov wrote: >> >> Hello! >> I have compiled sources with gcc. That gcc was build as Linux binary, >> so I have used linux emulation. >> During compilation I have got an error: >> "virtual memory exhausted: Cannot allocate memory" >> Surfing the Internet tell me that root cause is a call to mmap using >> MAP_ANONYMOUS returned >> MAP_FAILED with errno set to ENOMEM, from the man page of mmap can be seen >> that >> can happen when the process's has reached the maximum number of >> mappings. So, I need to increase virtual memory for the user under >> which compilation is run. >> But, I cannot do it with limit, tcsh command: >> ~> limit datasize 1048576 >> limit: datasize: Can't set limit (Operation not permitted) >> >> So, a question how can I do it? > > Take a look at login.conf(5). > > Kind regards, > Markus > > >
-- /BR, Alexander

