Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2805 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Divers

  Nouveau FS : Spad Filesystem for Linux

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Nouveau FS : Spad Filesystem for Linux

n°864359
Profil sup​primé
Posté le 19-11-2006 à 14:06:32  answer
 

SpadFS is a new filesystem that I design and develop as my PhD thesis. It is an attempt to bring features of advanced filesystems (crash recovery, fast directories) and good performance without increasing code complexity too much. Uses crash counts instead of journaling (because journaling is too complex and bug-prone) and uses hash instead of btrees for directory organization.
 
http://artax.karlin.mff.cuni.cz/~mikulas/spadfs/
 
via "OS news"

mood
Publicité
Posté le 19-11-2006 à 14:06:32  profilanswer
 

n°864492
Pepe le Mo​co
Eeeeh ouais! c'est tout kon !
Posté le 19-11-2006 à 19:49:07  profilanswer
 

Citation :

Features:  
New method to maintain consistency across crashes --- crash counts.  
48-bit sector numbers. Supports device size up to 144PB.  
Variable block size from 512 bytes to machine page size. Due to design of Linux page cache, small blocksize increases CPU consumption considerably.  
Large directories are organized in a similar way as Fagin's extendible hashing. Does not use btrees.  
Files are embedded directly in directory structure (unless hardlink is created). Thus, ls -la command doesn't have to seek to inodes.  
Free space is described in lists of extents rather than bitmaps like in most common filesystem. If a filesystem becomes too fragmented, list of free extents is converted to bitmap.


 
Quelques benchs fait par lui.
 

Citation :

Disk: WD Caviar 160GB SATA, 20GB test partition at the end
 
Filesystems are tested on Linux 2.6 and Spad (not yet released kernel with
experimental features).
 
RATE.PNG, RATE_CPU.PNG:
write, rewrite, read 8GiB file, report average data rate and CPU consumption in
seconds.
 
TAR.PNG:
Take file on-src-20060814.tar (OpenSolaris sources), already unpacked, and try:
tar xf
cp -a the whole directory
grep -r on the whole directory
rm -rf
Light color bar represents the time to do subsequent sync.


 
http://artax.karlin.mff.cuni.cz/~mikulas/spadfs/benchmarks/RATE.PNG
http://artax.karlin.mff.cuni.cz/~mikulas/spadfs/benchmarks/RATE_CPU.PNG
http://artax.karlin.mff.cuni.cz/~mikulas/spadfs/benchmarks/TAR.PNG
 
 
Réac. de Linus Torvalds
 

Citation :

Linus Torvalds <>
Subject Re: New filesystem for Linux
 
 
 
On Thu, 2 Nov 2006, Mikulas Patocka wrote:
>  
> As my PhD thesis, I am designing and writing a filesystem, and it's now in a
> state that it can be released. You can download it from
> http://artax.karlin.mff.cuni.cz/~mikulas/spadfs/
 
Ok, not having actually tested any of this, I only have a few comments on  
the source code:
 
 - the source tree layout is very confusing. Can you please separate the  
   mkfs/fsck parts more clearly from the kernel driver parts?
 
 - you have a _very_ confusing usage of upper-case. Not only are a lot of  
   functions upper-case, some filenames are also upper-case. What would  
   otherwise be more readable just ends up being hard to read because it's  
   so odd and unexpected.
 
   I'm sure there is some logic to it, but it escapes me.
 
 - your whitespace usage needs some work: please put empty lines between  
   the declarations and the code in a function, and since you use a fair  
   amount of "goto"s, please do NOT indent them into the code (it's almost  
   impossible to pick out the target labels because you hide them with the  
   code).
 
 - your whitespace, part 2: you have a fair number of one-liner  
   if-statements, where again there is no indentation, and thus the flow  
   is almost impossible to see. Don't wrote
 
 if (somecomplexconditional) return;
   but please instead write
 
 if (somecomplexcondifional)
  return;
   and perhaps use a few more empty lines to separate out the "paragraphs"  
   of code (the same way you write email - nobody wants to see one solid  
   block of code, you'd prefer to see "logical sections" ).  
   Here's a prime example of what NOT to do:
 
 if (__likely(!(((*c)[1] - 1) & (*c)[1]))) (*c)[0] = key;
   I dare anybody to be able to read that. That wasn't even the worst one:  
   some of those if-statements were so long that you couldn't even _see_  
   what the statement inside the if-statement even was (and I don't use a  
   80-column wide terminal, this was in a 112-column xterm)
 
 - why use "__d_off" etc hard-to-read types? You seem to have typedef'ed  
   it from sector_t, but you use a harder-to-read name than the original  
   type was. Hmm?  
 
 - you have a few comments, but you could have a lot more explanation,  
   especially since not all of your names are all that self-explanatory.
 
Ok, with that out of the way, let's say what I _like_ about it:
 
 - it's fairly small
 
 - the code, while having the above problems, looks generally fairly  
   clean. The whitespace issues get partially cleared by just running  
   "Lindent" on it, although that's not perfect either (it still indents  
   the goto target labels too much, although it at least makes them  
   _visible_. But it won't add empty lines to delineate sections, of  
   course, and it doesn't add comments ;^)
 
 - I like a lot of the notions, and damn, small and simple are both  
   virtues on their own.
 
So if you could make the code easier to read, and were to do some  
benchmarking to show what it's good at and what the problems are, I think  
you'd find people looking at it. It doesn't look horrible to me.
 
  Linus


 
 
 
 
 


Message édité par Pepe le Moco le 19-11-2006 à 21:37:01
n°864519
dr-freuder​ick
Asymétrie Cognitive.
Posté le 19-11-2006 à 20:52:51  profilanswer
 

C'est sympas de voir l'interaction entre dev's.
 


---------------
The Toast, un docu-fiction qui teste la loi de murphy et les films en carton

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Divers

  Nouveau FS : Spad Filesystem for Linux

 

Sujets relatifs
client légé sous linux pour vieux PCbooter sur un windows sous linux ?
PIXEL - un clone de photoshop sous linuxMeilleur version de linux en terme de ....
ATI does not support Linux or XFree86.serveur de messagrie soous linux
nouveau latop avek XP home incrustee a l aideGraveur DVD DL Linux
Debian/Linux sur carte wrap pcengines, c'est ici :)[ Gentoo ][ Cherche ] Equivalent SpaceMonger pour linux?
Plus de sujets relatifs à : Nouveau FS : Spad Filesystem for Linux


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR