[Gllug] Top posting + truncated files in ext4

John Edwards john at cornerstonelinux.co.uk
Thu Mar 12 14:09:50 UTC 2009


On Thu, Mar 12, 2009 at 01:14:17PM +0000, David Damerell wrote:
<snip> 
> Sometimes old-fashioned just means not being odious.

But sometime it does.

Take a lesson from Jon Postel - be conservative in what you
send, and liberal in what you accept.

Top posting may make a mess of emails, especially in digests
and archives, but is no reason to harass people into leaving
the mailing list.


Can we switch to a different topic?

The change of sync interval in ext4 from 5 seconds to 150 seconds
is causing some programs (eg KDE) to truncate files:
	https://bugs.edge.launchpad.net/bugs/317781

An obvious fix is to change the program to write to a temp file
and move that into place:
	https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/317781/comments/54

Or to use 'fsync' to force all files to be written.

But if lots of programs start to use 'fsync' so that you get 
several calls each second, won't that seriously reduce disk I/O
to almost the level you would get with the 'sync' mount option?


Ext3 has a 'commit=' option where you can change the default sync
interval. Does ext4 have something similar that could be used to
duplicate the ext3 behaviour?


-- 
#---------------------------------------------------------#
|    John Edwards   Email: john at cornerstonelinux.co.uk    |
|                                                         |
| A. Because it breaks the logical sequence of discussion |
| Q. Why is top posting bad ?                             |
#---------------------------------------------------------#
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20090312/a5a8a75d/attachment.pgp>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list