High memory usage on unix server

*nix specific usage questions
nereikianieko
Blank Cone
Blank Cone
Posts: 27
Joined: 24 May 2008 17:51

High memory usage on unix server

Postby nereikianieko » 13 Sep 2010 17:12

I have a Centos server with 1Gb RAM, VLC is not specially compilled (maybe I should disable some modules), but VLC memory usage is huge - one idle instance with telnet interface takes about 100Mb, On unix simple streaming without transcoding takes about 230Mb of RAM
On windows the exact proccess without transcoding takes only ~40Mb of RAM .

I'm starting vlc with
vlc --extraintf telnet --telnet-port 5555 --telnet-password mypassword

Later I add command via telnet:
new MYSTREAM broadcast enabled setup MYSTREAM input "http://myip:8666" setup MYSTREAM output #std{access=http,mux=ts,dst=:8666}

And starting mystream with
control MYSTREAM play

I'm running each stream via separate process.

After running it, I receive these lines
VLC media player 0.9.9a Grishenko
[00000001] main libvlc debug: VLC media player - version 0.9.9a Grishenko - (c) 1996-2009 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--disable-rpath' '--disable-static' '--enable-release' '--enable-aa' '--enable-alsa' '--enable-arts' '--enable-caca' '--enable-cddax' '--enable-dirac' '--enable-dvbpsi' '--enable-dvdread' '--enable-esd' '--enable-faad' '--enable-fbosd' '--enable-flac' '--enable-galaktos' '--enable-gnomevfs' '--enable-lirc' '--enable-live555' '--with-live555-tree=/dar/build/vlc-0.9.9a/live' '--enable-loader' '--enable-musicbrainz' '--enable-ncurses' '--enable-opencv' '--enable-portaudio' '--enable-pulse' '--enable-pvr' '--enable-real' '--enable-realrtsp' '--enable-shout' '--enable-snapshot' '--enable-svg' '--enable-svgalib' '--enable-switcher' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-v4l' '--enable-xosd' '--enable-xvmc' 'build_alias=i686-redhat-linux-gnu' 'host_alias=i686-redhat-linux-gnu' 'target_alias=i386-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' 'LDFLAGS=-L/usr/X11R6/lib' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' 'PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig'
[00000001] main libvlc debug: translation test: code is "C"
[00000416] telnet interface: using the VLM interface plugin...
[00000416] telnet interface: telnet interface started on interface 5555
process 5651: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
[00000421] inhibit interface error: Failed to connect to the D-Bus session daemon: Failed to execute dbus-launch to autolaunch D-Bus session
[00000421] main interface error: no suitable interface module
[00000001] main libvlc error: interface "inhibit,none" initialization failed
[00000001] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
process 5651: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
[00000427] qt4 interface error: Could not connect to X server
[00000427] skins2 interface error: Cannot open display
[00000427] skins2 interface error: cannot initialize OSFactory
Remote control interface initialized. Type `help' for help.


Maybe it's n
Last edited by nereikianieko on 14 Sep 2010 10:19, edited 2 times in total.

Rémi Denis-Courmont
Developer
Developer
Posts: 15229
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: High memory usage on unix server

Postby Rémi Denis-Courmont » 14 Sep 2010 03:42

It sounds a lot like you are not comparing the same figure on both operating systems.

Transcoding takes a lot of memory. No surprises there. Something's got to store the raw decoded video frames.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

nereikianieko
Blank Cone
Blank Cone
Posts: 27
Joined: 24 May 2008 17:51

Re: High memory usage on unix server

Postby nereikianieko » 14 Sep 2010 10:17

Sorry, maybe it was not clear: both machines, windows and unix,are not transcoding, are launched by exact parameters 1:1 (same job, same stream, same interfaces) but unix takes 5 times more RAM

Rémi Denis-Courmont
Developer
Developer
Posts: 15229
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: High memory usage on unix server

Postby Rémi Denis-Courmont » 15 Sep 2010 03:28

Because Unix does not measure memory the same way.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 12 guests