Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

New Reiser4 feature - Discard (Trim) support for SSDs

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
dusanc
Apprentice
Apprentice
Posts: 248
Joined: Mon Sep 19, 2005 9:58 pm
Location: Serbia

New Reiser4 feature - Discard (Trim) support for SSDs

  • Quote

Post by dusanc » Tue May 06, 2014 7:14 am

So if you have an SSD and heard about Trim feature http://en.wikipedia.org/wiki/Trim_%28computing%29 you can use it now with your Reiser4 partitions with following patches using "discard" mount option:

http://marc.info/?l=reiserfs-devel&m=13 ... 207357&w=2

PS. Drives with specs <SATA3.1 may slow down as trim is slow and not queued on them http://en.wikipedia.org/wiki/Trim_%28co ... ortcomings
Reiser4 Gentoo FAQ [25Dec2016]
Top
dusanc
Apprentice
Apprentice
Posts: 248
Joined: Mon Sep 19, 2005 9:58 pm
Location: Serbia

  • Quote

Post by dusanc » Sat Aug 09, 2014 11:11 pm

Discard/trim option is out for 3.15
Hello everyone,

Ivan Shapovalov kindly implemented discard support for us.

Now SSD users can mount their reiser4 partitions with the option
"discard" and the file system will issue discard requests to inform
the device that blocks are not longer used.

In reiser4 issuing discard requests is a delayed action (like many
other actions including block allocation, compression, etc). It means
that discard requests are accumulated as the release of blocks and
issued as background process after issuing of all other usual
requests.

Such delayed technique allows to issue discard requests of better
quality, because the discard requests get merged in the process of
accumulation. Another advantage of the delayed discard is that the
"non-queued TRIM" is not a problem for us.


Implementation notes


Managing discard requests is a business of reiser4 transaction
manager. This is because blocks deallocation is a kind of events
which are tracked by the transaction manager. Deallocted extents
are captured by a respective transaction atom. At commit time all
the extents are sorted, merged and discarded right after overwriting
journalled blocks at their permanent location on disk. After issuing
the discard requests we complete the transaction by deallocating
respective blocks at working bitmap (which always resides in memory).
Thus, we guarantee consistency (nobody touches our extents before
discard completion). We don't record information about discard
extents in the journal. The worst thing that can happen after system
crash is missing a number of discard requests. It doesn't break
consistency of the file systems however. For such unpleasant
situations we'll provide support of FITRIM ioctl later.

Also in plans: garbage collection at the head and tail of every
extent to be discarded. The algorithms are complicated, however,
the game is worth the candle.
The patch against reiser4-for-3.15 can be found here:
http://sourceforge.net/projects/reiser4/files/patches/

WARNING: Don't use it for important data for now. Even in the case
of no visible problems, please, check your partition by fsck.reiser4
as frequently as possible. Report about found inconsistency.


Discard support in reiser4progs:


When formatting your SSD partition by mkfs.reiser4 use the option -d:
it will issue discard request for the whole partition before creating
reiser4 structure on it. This option is available in reiser4progs-1.0.9,
please find here:
http://sourceforge.net/projects/reiser4 ... iser4progs

In order to build reiser4progs-1.0.9 you will need libaal-1.0.6,
please find here:
http://sourceforge.net/projects/reiser4 ... ils/libaal

Thanks,
Edward.
Reiser4 Gentoo FAQ [25Dec2016]
Top
Post Reply

2 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic