LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-17-2021, 09:57 PM   #1
chconnor
LQ Newbie
 
Registered: May 2009
Posts: 16

Rep: Reputation: 0
Question ext4 performance tweaking: how to confirm data=writeback is in effect?


Hi -- I'm experimenting with various ext4 settings on an SSD (SATA).

/etc/fstab has:

Code:
UUID=1234 / ext4 noatime,data=writeback,barrier=0,nobh,commit=60,errors=remount-ro 0       1
...but that makes the system not boot (an error relating to remounting with different journal mode) unless I also do:

Code:
# tune2fs -o journal_data_writeback /dev/sda2
...now the system boots, but I don't see "data=writeback" here:

Code:
$ findmnt /dev/sda2
TARGET SOURCE    FSTYPE OPTIONS
/      /dev/sda2 ext4   rw,noatime,nobarrier,errors=remount-ro,commit=60
How can I tell if data=writeback has taken effect?

Thanks!
 
Old 03-17-2021, 09:59 PM   #2
chconnor
LQ Newbie
 
Registered: May 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Ah, perhaps I have answered my question: journalctl -xb shows

Code:
EXT4-fs (sda2): mounted filesystem with writeback data mode. Opts: (null)
...
EXT4-fs (sda2): re-mounted. Opts: data=writeback,barrier=0,nobh,commit=60,errors=remount-ro
...but out of curiosity, is there a way to check this via CLI? Why wouldn't it show up in findmnt?
 
  


Reply

Tags
ext4, journaling, performance



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change file system from ext4 journeying to ext4 writeback ? 5883 Linux - Newbie 6 03-10-2014 08:04 AM
[SOLVED] Is my data safe after running "sync" if I use data=writeback,barrier=0 (ext4)? *Dark Dragon* Linux - General 4 01-11-2012 02:25 PM
Mounting root filesystem with data=writeback Phaethar Red Hat 2 01-29-2004 04:47 PM
Cannot enable data=writeback on root buddhahat Linux - Newbie 2 11-07-2003 05:20 PM
[RedHat] ext3 data=writeback question WeNdeL Linux - Distributions 0 10-22-2003 06:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration