You are not logged in.

#1 2009-08-29 04:05:26

poopship21
Member
Registered: 2009-05-13
Posts: 177

best filesystem for firefox, rtorrent?

this is a pretty open question since i dont specify the criterion of excelence (perhaps reliability or performance?).  i come with nothing more than a cursory knowledge of the topics covered in Nemeth,E (2008) and the will to optimize.

-all mounted volumes are on a local consumer sata hdd (1tb wd "re3") which is sold as a non-scsi raid device

-as such this drive does not implement some of the more consumer-critical "safety" features of other wd drives.  apparently some of the robustness of raid parity is supposed to compensate for these limitations, whatever they may be (please advise).  right now i am stuck with this drive as my only drive

T I A

Last edited by poopship21 (2009-08-30 03:47:07)

Offline

#2 2009-08-29 04:39:04

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: best filesystem for firefox, rtorrent?

The best file system for Firefox is to let it use only RAM by disabling disk caching.  If you need your cache to stick around longer (e.g., dial-up, browser crashes, etc.), then make binds to /dev/shm, and set Firefox's cache directory there.

#!/bin/bash
### Bind temporary directories to /dev/shm ###
# I do this instead of mounting tmpfs on the #
# directories, so less memory gets wasted.   #
##############################################
mkdir /dev/shm/{tmp,lock}
mount --bind /dev/shm/tmp /tmp
mount --bind /dev/shm/tmp /var/tmp
mount --bind /dev/shm/lock /var/lock
chmod 1777 /dev/shm/{tmp,lock}

As for the torrenting, you probably want Ext3 -- the safest choice -- or Ext4, if you need the performance benefits and you're feeling slightly more adventurous.

Last edited by Wintervenom (2009-08-29 04:39:52)

Offline

#3 2009-08-29 05:10:47

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: best filesystem for firefox, rtorrent?

"As for the torrenting, you probably want Ext3 -- the safest choice -- or Ext4" I wouldn't say for EXT3 this, but as many house as many using smile I use reiserfs for performance reason.

Offline

#4 2009-08-30 04:25:20

poopship21
Member
Registered: 2009-05-13
Posts: 177

Re: best filesystem for firefox, rtorrent?

thanks for that tip wintervenom.  i disabled the disk caching feature in firefox via about:config and it seems to help on a laptop (for sure there is no negative affect).  if i read your script correctly, the script above is going to make any application (that normally caches to /tmp and /var/tmp) actually address shared system memory.  is this going to adversely affect any other applications?  thanks

Offline

#5 2009-08-30 04:43:29

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: best filesystem for firefox, rtorrent?

XFS and ext4 can instantly preallocate space for downloaded files, which minimizes fragmentation and thus improves performance - one needs to fiddle a bit to make rtorrent use that functionality, though.

Offline

#6 2009-08-30 04:58:02

methuselah
Member
Registered: 2007-10-02
Posts: 570

Re: best filesystem for firefox, rtorrent?

poopship21 wrote:

thanks for that tip wintervenom.  i disabled the disk caching feature in firefox via about:config and it seems to help on a laptop (for sure there is no negative affect).  if i read your script correctly, the script above is going to make any application (that normally caches to /tmp and /var/tmp) actually address shared system memory.  is this going to adversely affect any other applications?  thanks

Check this wiki out: http://wiki.archlinux.org/index.php/Spe … sing_tmpfs

and here is another page: http://www.verot.net/firefox_tmpfs.htm

Offline

#7 2009-09-01 14:12:04

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: best filesystem for firefox, rtorrent?

@Wintervenom
Why not create an extra dir to mount /var/tmp ? Something like

mkdir /dev/shm/{tmp,vartmp,lock}
mount --bind /dev/shm/tmp /tmp
mount --bind /dev/shm/vartmp /var/tmp
mount --bind /dev/shm/lock /var/lock
chmod 1777 /dev/shm/{tmp,vartmp,lock}

R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#8 2009-11-26 16:00:58

poopship21
Member
Registered: 2009-05-13
Posts: 177

Re: best filesystem for firefox, rtorrent?

thanks R, that would eliminate worries.  maybe im still getting used to the casual nature of OS scripting in linux.  novelty banishes common sense pretty efficiently sometimes.

Offline

#9 2009-11-26 16:06:02

poopship21
Member
Registered: 2009-05-13
Posts: 177

Re: best filesystem for firefox, rtorrent?

lucke wrote:

XFS and ext4 can instantly preallocate space for downloaded files, which minimizes fragmentation and thus improves performance - one needs to fiddle a bit to make rtorrent use that functionality, though.

im a beginner so thanks in advance for your patience.  i was under the impression that delayed write is a feature that applies whenever a device whose filesystem supports delayed write is mounted on the directory being written.  implicit is the idea that delayed-write is a transparent feature to such write operations.  so my questions are:

1) are you talking about simply asking rtorrent to pre-allocate its downloads?

2) are you saying that chunks of an unfinished download can be written to the disk in a more concerted way?  this would have no affect on fragmentation but would affect i/o-limited performance, which i thought was another goal of delayed-write.

Last edited by poopship21 (2009-11-26 16:21:26)

Offline

#10 2009-11-26 16:47:07

gen1s
Member
From: Russian Federation
Registered: 2009-08-04
Posts: 17

Re: best filesystem for firefox, rtorrent?

I am using JFS for firefox profile and pacman database. It is much faster for me. Reiser4 is good choice too.

Offline

#11 2009-11-26 19:39:37

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: best filesystem for firefox, rtorrent?

If you download a 4GB file over a long period of time, it's sure to be chopped into thousands of extents, even with delayed allocation. The trick is to preallocate the needed space - all other filesystems just write zeroes there, which takes a lot of time, XFS and ext4 use a special system call which allocates the space instantly.

http://lwn.net/Articles/226710/

Offline

Board footer

Powered by FluxBB