Page 1 of 1

Virtual Memory Problem

Posted: 19 Apr 2009 16:06
by niemand
I'm running VLC on a VPS with Linux; there's no possibility to increase my virtual memory. I need the possibility to run several Instances of VLC simultaneously. The problem is: vlc reserves far too much virtual memory and no more than two instances of vlc work properly.
The following "code" is the part of the output of the top command. As you can see, the Process 20411 causes Page Faults (nFLT)

Code: Select all

Mem: 5140812k total, 52988k used, 5087824k free, 0k buffers Swap: 0k total, 0k used, 0k free, 0k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ nFLT COMMAND 20411 niemand 15 0 170m 20m 4580 T 0 0.4 0:02.87 32 vlc 21622 niemand 18 0 156m 13m 4100 T 0 0.3 0:00.11 0 vlc 21559 niemand 15 0 144m 12m 4528 S 0 0.3 0:02.91 0 vlc
Is there any possibility preventing VLC from addressing too much virtual memory?
(Java, for example, has two command line options called -Xms<Initial Memory> and -Xmx<Maximal Memory>)

Re: Virtual Memory Problem

Posted: 19 Apr 2009 18:34
by RĂ©mi Denis-Courmont
ulimit is your friend