Re: Setting ext3 Commit Interval

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday 13 February 2005 02:01 pm, Can Sar wrote:
> Hi,
>
> Does anyone know if the ext3 Commit Interval can be set from Userspace
> via some application? I know how to change the kernel to do this, but I
> feel like there must be a simpler code and remember that there are some
> kernel hooks to change it, but I am not sure how.
>

Hi,

Quote from Documentation/filesystems/ext3.txt: 

When mounting an ext3 filesystem, the following option are accepted:
(*) == default
...
commit=nrsec    (*)     Ext3 can be told to sync all its data and metadata
                        every 'nrsec' seconds. The default value is 5 seconds.
                        This means that if you lose your power, you will lose,
                        as much, the latest 5 seconds of work (your filesystem
                        will not be damaged though, thanks to journaling).This
                        default value (or any low value) will hurtperformance,
                        but it's good for data-safety. Setting it to 0 will
                        have the same effect than leaving the default 5 sec.
                        Setting it to very large values will improve
                        performance.


tavi

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux