Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Reiser4 Gentoo FAQ [25Oct2014]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
vacula
n00b
n00b


Joined: 17 Oct 2007
Posts: 32
Location: Lviv. Ukraine

PostPosted: Mon Dec 27, 2010 1:29 pm    Post subject: reiser4 and SSD Reply with quote

Hi all,

are there any recomendations regarding using reiser 4 on SSD drives?
does anybody know whether reiser 4 has some special options for running on SSD?
actually, I haven't found any information about reiser 4 + SSD :(
Back to top
View user's profile Send private message
dusanc
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 224
Location: Serbia

PostPosted: Wed Dec 29, 2010 9:29 am    Post subject: Reply with quote

I use Reiser4 on an SSD, only thing I did was that I alligned partition on SSD (there's a howto on forums), and I used cryptocompression :D

There is no special SSD magic :D
_________________
Reiser4 Gentoo FAQ [25Oct2014]
Back to top
View user's profile Send private message
ssteinberg
Apprentice
Apprentice


Joined: 09 Jul 2010
Posts: 206
Location: Israel

PostPosted: Wed Dec 29, 2010 11:15 am    Post subject: Reply with quote

I am getting a G73JW notebook with a Crucial C300 SSD soon, so this is becoming interesting.
ext4 with discard still seems the stable option. I am willing to play around however. btrfs with ssd and compress mount opts was what I wanted to try. Any good reason to try reiser4 over btrfs?
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 5721
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Wed Dec 29, 2010 1:55 pm    Post subject: Reply with quote

ssteinberg wrote:
I am getting a G73JW notebook with a Crucial C300 SSD soon, so this is becoming interesting.
ext4 with discard still seems the stable option. I am willing to play around however. btrfs with ssd and compress mount opts was what I wanted to try. Any good reason to try reiser4 over btrfs?


yes:

it's tested over years and looks pretty stable and DOES NOT eat your data ;)

btrfs now already has eaten my data at least 2-3 times

also if you're using dm-crypt or cryptsetup - there's some silent corruption going on with btrfs and no one knows why :(

there are way more - just read through the reiser4 threads and you'll know why
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.3.0-r2
2.6.37.2_plus_v1: BFS, CFS,THP,compaction, zcache or TOI
Hardcore Linux user since 2004 :D
Back to top
View user's profile Send private message
vacula
n00b
n00b


Joined: 17 Oct 2007
Posts: 32
Location: Lviv. Ukraine

PostPosted: Wed Dec 29, 2010 2:19 pm    Post subject: Reply with quote

kernelOfTruth wrote:
ssteinberg wrote:
I am getting a G73JW notebook with a Crucial C300 SSD soon, so this is becoming interesting.
ext4 with discard still seems the stable option. I am willing to play around however. btrfs with ssd and compress mount opts was what I wanted to try. Any good reason to try reiser4 over btrfs?


yes:

...


@kernelOfTruth: can you give any recomendation for mount params for reiser4 on SSD? i.e. commit=??,noatime,...
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 5721
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Wed Dec 29, 2010 2:47 pm    Post subject: Reply with quote

vacula wrote:
kernelOfTruth wrote:
ssteinberg wrote:
I am getting a G73JW notebook with a Crucial C300 SSD soon, so this is becoming interesting.
ext4 with discard still seems the stable option. I am willing to play around however. btrfs with ssd and compress mount opts was what I wanted to try. Any good reason to try reiser4 over btrfs?


yes:

...


@kernelOfTruth: can you give any recomendation for mount params for reiser4 on SSD? i.e. commit=??,noatime,...


try experimenting with:

Code:
noatime,nodiratime,tmgr.atom_max_flushers=30,tree.cbk_cache.nr_slots=32


or

Code:
noatime,nodiratime,tmgr.atom_max_flushers=30,tree.cbk_cache.nr_slots=128




Code:
mkfs.reiser4 -o create=ccreg40,compress=lzo1,formatting=smart


should give you nice speed and the advantage of compression and checksumming

if you have many more
* large files: formatting=extents
* small files: formatting=tails
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.3.0-r2
2.6.37.2_plus_v1: BFS, CFS,THP,compaction, zcache or TOI
Hardcore Linux user since 2004 :D
Back to top
View user's profile Send private message
vacula
n00b
n00b


Joined: 17 Oct 2007
Posts: 32
Location: Lviv. Ukraine

PostPosted: Wed Dec 29, 2010 2:55 pm    Post subject: Reply with quote

Thanks, kernelOfTruth!

It would be nice to try this out among interested people and share results here. Then we could discuss those "best options" and add new separate question to the FAQ.

@dusanc:
?
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 5721
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Wed Dec 29, 2010 3:17 pm    Post subject: Reply with quote

vacula wrote:
Thanks, kernelOfTruth!

It would be nice to try this out among interested people and share results here. Then we could discuss those "best options" and add new separate question to the FAQ.

@dusanc:
?


he probably means:

in theory/proactically you could go with the stock options

mkfs.reiser4 -o create=ccreg40,compress=lzo1

or

mkfs.reiser4 -o create=ccreg40,compress=gzip1


and noatime,nodiratime

for mount-options

(noatime implies nodiratime so you don't really need nodiratime - but I still add it)

I however have made the experience that sometimes, e.g. the maximal flushers are not being set correctly or working optimally (e.g. 0 should be unlimited but setting it to 30 seemingly gave me better results)

and therefore I'm setting them explicitly
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.3.0-r2
2.6.37.2_plus_v1: BFS, CFS,THP,compaction, zcache or TOI
Hardcore Linux user since 2004 :D
Back to top
View user's profile Send private message
vacula
n00b
n00b


Joined: 17 Oct 2007
Posts: 32
Location: Lviv. Ukraine

PostPosted: Wed Dec 29, 2010 3:37 pm    Post subject: Reply with quote

kernelOfTruth wrote:
vacula wrote:
Thanks, kernelOfTruth!

It would be nice to try this out among interested people and share results here. Then we could discuss those "best options" and add new separate question to the FAQ.

@dusanc:
?


he probably means:
...

With that question mark I mean only a question to dusanc - whether he could add new question+answer about reiser 4 on SSD :oops:

Now it's time to experiment :)
Back to top
View user's profile Send private message
dusanc
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 224
Location: Serbia

PostPosted: Wed Dec 29, 2010 10:53 pm    Post subject: Reply with quote

vacula wrote:

With that question mark I mean only a question to dusanc - whether he could add new question+answer about reiser 4 on SSD :oops:

Now it's time to experiment :)

Q18 added :D
_________________
Reiser4 Gentoo FAQ [25Oct2014]
Back to top
View user's profile Send private message
costel78
Apprentice
Apprentice


Joined: 20 Apr 2007
Posts: 203

PostPosted: Tue Jan 04, 2011 8:55 am    Post subject: Reply with quote

AFAIK reiser4 does not support TRIM. That's why I use ext4 on my SSD. And there are no garbage collector on my Intel M25 80GB drive.
Am I wrong ? Should I reconsider using reiser4 which was the fastest filesystem I ever use ?
_________________
Sorry for my English. I'm still learning this language.
Back to top
View user's profile Send private message
dusanc
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 224
Location: Serbia

PostPosted: Tue Jan 04, 2011 9:46 am    Post subject: Reply with quote

If you align your FS, use -noatime as you should do with any FS on SSD, thing is that good SSD controllers won't detoriate easily over time (like Intel or sandforce ones). Not using your SSD for portage, tmp, or swap helps too :D
And as R4 does a great job of packing small writes, and has low fragmetation, detoriation is slower still.
You can clear your SSD after few years when you reinstall, or you can use recent hdparm and wiper tool ( http://sourceforge.net/projects/hdparm/files/ ) to discard trash on unmounted partition. BUT BE CAREFUL! Only safe data is with paranoid backups done with tinfoil hat :D
TRIM discards sectors supplied to it that don't contain data, but if wrong sectors are supplied to it, it'll discard them and eat your data.
And I don't use it, so proceed with caution, or ask someone who has.

But if you really need automatic online trash collection and automatic online trim by FS alone, reiser4 doesn't do it :(
It relies on user space for it :D
_________________
Reiser4 Gentoo FAQ [25Oct2014]
Back to top
View user's profile Send private message
costel78
Apprentice
Apprentice


Joined: 20 Apr 2007
Posts: 203

PostPosted: Tue Jan 04, 2011 10:31 am    Post subject: Reply with quote

I think I'll try it. Any chances that R4 to be integrated into mainline kernel this year ?
_________________
Sorry for my English. I'm still learning this language.
Back to top
View user's profile Send private message
dusanc
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 224
Location: Serbia

PostPosted: Tue Jan 04, 2011 10:41 am    Post subject: Reply with quote

costel78 wrote:
I think I'll try it. Any chances that R4 to be integrated into mainline kernel this year ?

I don't believe think so, unless akpm or some distro pushes it.
_________________
Reiser4 Gentoo FAQ [25Oct2014]
Back to top
View user's profile Send private message
one_and_only
Apprentice
Apprentice


Joined: 13 May 2007
Posts: 249
Location: PL/Krakow

PostPosted: Tue Jan 04, 2011 11:51 am    Post subject: Reply with quote

I got zen-kernel 2.6.32-zen2 manually patched with latest Edward's patches and, AFAIR, problem with removing directories should be gone (and it seems it was with patches that are in zen, but I had other issues so I had to take latest), but when I tried to remove "long" patch:
/var/tmp/portage/www-client/chromium-10.0.612.1-r1/work/chromium-10.0.612.1/out/Release/obj/gen/chrome
I got:
Code:

[67777.788667] WARNING: Cannot unlink 92436075 (-2)
[67777.816186] reiser4[rm(18937)]: reiser4_unlink_common (fs/reiser4/plugin/inode_ops.c:300)[nikita-3398]:

Anybody got that?
Back to top
View user's profile Send private message
dusanc
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 224
Location: Serbia

PostPosted: Tue Jan 04, 2011 12:08 pm    Post subject: Reply with quote

one_and_only wrote:
I got zen-kernel 2.6.32-zen2 manually patched with latest Edward's patches and, AFAIR, problem with removing directories should be gone (and it seems it was with patches that are in zen, but I had other issues so I had to take latest), but when I tried to remove "long" patch:
/var/tmp/portage/www-client/chromium-10.0.612.1-r1/work/chromium-10.0.612.1/out/Release/obj/gen/chrome
I got:
Code:

[67777.788667] WARNING: Cannot unlink 92436075 (-2)
[67777.816186] reiser4[rm(18937)]: reiser4_unlink_common (fs/reiser4/plugin/inode_ops.c:300)[nikita-3398]:

Anybody got that?

2.6.32?

Maybe try with something more recent, vanilla kernels? 2.6.36?
Also fsck the partition.
_________________
Reiser4 Gentoo FAQ [25Oct2014]
Back to top
View user's profile Send private message
dusanc
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 224
Location: Serbia

PostPosted: Wed Jan 05, 2011 11:00 am    Post subject: Reply with quote

Btw. latest .36 patch is from 27Dec2010 so download it if you used earlier versions from http://www.kernel.org/pub/linux/kernel/people/edward/reiser4/reiser4-for-2.6/
_________________
Reiser4 Gentoo FAQ [25Oct2014]
Back to top
View user's profile Send private message
costel78
Apprentice
Apprentice


Joined: 20 Apr 2007
Posts: 203

PostPosted: Wed Jan 05, 2011 11:23 am    Post subject: Reply with quote

I'll restored one of my gentoo backup on a reiser4 separate partition.
For me, except portage sync, there are no seizable difference between btrfs and reiser4, of course, except benchmarks.
It an Intel M-25 80 GB drive. So, I'll remain to ext4 which is more mature that btrfs and does support trim. I appreciate almost risk free file-systems. :D
_________________
Sorry for my English. I'm still learning this language.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 5721
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Wed Jan 05, 2011 1:17 pm    Post subject: Reply with quote

costel78 wrote:
I'll restored one of my gentoo backup on a reiser4 separate partition.
For me, except portage sync, there are no seizable difference between btrfs and reiser4, of course, except benchmarks.
It an Intel M-25 80 GB drive. So, I'll remain to ext4 which is more mature that btrfs and does support trim. I appreciate almost risk free file-systems. :D


if you had followed the linux-ext4 or linux-kernel/lkml mailing list you would have seen that ext4 is far more risky than reiser4 :roll:

I'm not writing this to bash ext4 in favor of reiser4 (I'm myself using ext4 on many harddrive partitions) but there for example was a
risk of data-loss with the 2.6.37 kernel which meanwhile got fixed (2.6.36 being safe, >2.6.36 until 2.6.37-rc6)

also I wouldn't use trim - since from what I read it can lead to data-loss (don't ask for the reasons why it leads to data loss - I forgot them but they sounded conclusive)

so the best option most probably would be to use reiser4 with cryptcompress (either lzo or gzip) and besides that only some other safe mount-options
that I posted in reply to vacula's question

ext4 might be "stable" and in the mainline / Linus' tree but it undergoes some heavy fixing and patching ...

so it would be better to be safe than sorry - especially if you don't have backups or only do them seldom
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.3.0-r2
2.6.37.2_plus_v1: BFS, CFS,THP,compaction, zcache or TOI
Hardcore Linux user since 2004 :D
Back to top
View user's profile Send private message
one_and_only
Apprentice
Apprentice


Joined: 13 May 2007
Posts: 249
Location: PL/Krakow

PostPosted: Wed Jan 05, 2011 3:06 pm    Post subject: Reply with quote

dusanc wrote:

Maybe try with something more recent, vanilla kernels? 2.6.36?
Also fsck the partition.


I meant 2.6.36, sorry for typo. I patched kernel before 27th, so I'll try the the lastest. Yes, fsck always helps for that.
Do I still need reiser4-fix-entd_flush.patch? cause have that patch applied already and it seems that's the only difference that Edward has made:
http://marc.info/?l=reiserfs-devel&m=129422945504144&w=2
But stil, I'll give it a shot.
Back to top
View user's profile Send private message
dusanc
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 224
Location: Serbia

PostPosted: Wed Jan 05, 2011 3:31 pm    Post subject: Reply with quote

one_and_only wrote:
dusanc wrote:

Maybe try with something more recent, vanilla kernels? 2.6.36?
Also fsck the partition.


I meant 2.6.36, sorry for typo. I patched kernel before 27th, so I'll try the the lastest. Yes, fsck always helps for that.
Do I still need reiser4-fix-entd_flush.patch? cause have that patch applied already and it seems that's the only difference that Edward has made:
http://marc.info/?l=reiserfs-devel&m=129422945504144&w=2
But stil, I'll give it a shot.

Only get the latest patch from 27'th over vanilla 2.6.36, nothing else, and then report it please :D
_________________
Reiser4 Gentoo FAQ [25Oct2014]
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5236
Location: France, Old Europe

PostPosted: Fri Jan 07, 2011 5:01 pm    Post subject: Reply with quote

neunon wrote:
Might be good to add that SystemRescueCD can be used if you want to set up a Gentoo install with the root FS being Reiser4.


Just a note that partedmagic now has R4 support. :)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.

AthlonXP-M on A7N8X @ 2.6/2.4GHz (winter/summer)
2.6.32-hh1 : portage ~x86
Back to top
View user's profile Send private message
costel78
Apprentice
Apprentice


Joined: 20 Apr 2007
Posts: 203

PostPosted: Sat Jan 08, 2011 12:53 pm    Post subject: Reply with quote

kernelOfTruth wrote:

if you had followed the linux-ext4 or linux-kernel/lkml mailing list you would have seen that ext4 is far more risky than reiser4 :roll:

I'm not writing this to bash ext4 in favor of reiser4 (I'm myself using ext4 on many harddrive partitions) but there for example was a
risk of data-loss with the 2.6.37 kernel which meanwhile got fixed (2.6.36 being safe, >2.6.36 until 2.6.37-rc6)

also I wouldn't use trim - since from what I read it can lead to data-loss (don't ask for the reasons why it leads to data loss - I forgot them but they sounded conclusive)

so the best option most probably would be to use reiser4 with cryptcompress (either lzo or gzip) and besides that only some other safe mount-options
that I posted in reply to vacula's question

ext4 might be "stable" and in the mainline / Linus' tree but it undergoes some heavy fixing and patching ...

so it would be better to be safe than sorry - especially if you don't have backups or only do them seldom


Well, you are right.
But I DO have backups (weekly for my /home and /var/www) and monthly for entire Gentoo systems (two). And, since I own that SSD I use only gentoo-sources, no release candidate kernel so I feel :lol: that my data are safe enough.
_________________
Sorry for my English. I'm still learning this language.
Back to top
View user's profile Send private message
one_and_only
Apprentice
Apprentice


Joined: 13 May 2007
Posts: 249
Location: PL/Krakow

PostPosted: Sun Jan 16, 2011 10:19 pm    Post subject: Reply with quote

dusanc wrote:

Only get the latest patch from 27'th over vanilla 2.6.36, nothing else, and then report it please :D

I patched over zen, but seems to work fine ;). Thanks!
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 5721
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Mon Feb 14, 2011 4:01 pm    Post subject: Reply with quote

if you folks are having problems with fixing your filesystem

a (potential) fix has been posted for reiser4progs 1.0.7 :idea: :

http://marc.info/?l=reiserfs-devel&m=129703129519745&w=2
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.3.0-r2
2.6.37.2_plus_v1: BFS, CFS,THP,compaction, zcache or TOI
Hardcore Linux user since 2004 :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 5 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum