Re: mplayerplug-in-3.40 and /tmp files
Kevin DeKorte <[email protected]>
| Newsgroups | gmane.comp.mozilla.mplayerplug-in |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dennis Veatch wrote: > Hi folks and thanks for this handy plugin. > > Having a bit of an issue with it though and it happens using firefox or > seamonkey and only when watching a video that uses mplayerplug-in. > > If you go here http://www.tv-links.co.uk/show.do/1/87 and pick one. What > happens is, the link plays fine but eventually stops. Poking around I find > when one of those links is clicked on, a /tmp/some.file.name gets created and > no matter what settings I have for mplayerplug-in cache sizes this temp file > continues to grow until my /tmp is full. It's currently set by /etc/fstab to > 512M. > > I cannot find how to tell mplayerplug-in to use a different location for this > temp file. I have the mplayerplug-in.conf setting as; > dload-dir=/home/dveatch/tmp. But that doesn't seem to do anything unless I > want to save the file, which atm is not my concern. > > So how do I tell mplayerplug-in to stop growing this tmp file size beyond the > settings I have in it's conf? Or is this an issue with firefox/seamonkey? And > for those two I have not found in about:config where to fiddle with tmp file > placement. > > Thanks Ok, when the media can be cached, mplayerplug-in downloads it all... so have two options.. 1. Set 'nomediacache=1' this will play everything directly from the site with no caching, this could lead to stuttering or early termination and so therefore is not recommended for media over the net. On private network with diskless clients it works well. 2. Set the environment var 'TMPDIR' to a directory with more space... prior to launching firefox /home/uid/tmp would be an ok choice. I would not recommend setting this to /home/uid since you could end up with a bunch of crap in your home. 3. Change the code in mplayerplug-in. There are two places 'tempnam' is used and it defaults to '/tmp' if TMPDIR is not set. You can change those two locations to whatever location you want them to be. As a side note, typically I specify /tmp to be twice my physical RAM size. So with a machine with 1GB of RAM I set tmp to be 2GB. More an more I just leave /tmp on the same volume as / since I'm getting lazy about it. But usually I make / about 20GB and leave the rest to /home. But that is just on my personal machine. Servers I set up a little differently. Usually I put the OS on / and then make a /data that is a RAID volume. Kevin - -- Get my public GnuPG key from http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Remi - http://enigmail.mozdev.org iD8DBQFGep2F6w2kMH0L1dERAqcqAKCCoEcZqanQ3AHp7DDfO7kE2Gn10ACdGlDe qi8H5MfGO85vJXaTrDkSo54= =V6HN -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/