login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
September
»
22
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels >= 2.6.20
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Chuck Lever
Subject:
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels >= 2.6.20
Date: Monday, September 22, 2008 - 10:26 am
On Mon, Sep 22, 2008 at 1:04 PM, Aaron Straus <aaron@merfinllc.com> wrote:
quoted text
> Hi, > > On Sep 22 12:35 PM, Trond Myklebust wrote: >> Revert _what_ exactly? > > Yep. I narrowed the problem down to an offending hunk in a particular > patch. Removing that hunk did eliminate the problem. However, > reverting that hunk is likely wrong and the code has changed _a lot_ > since that commit. > >> My understanding was that this is a consequence of unordered writes >> causing the file to be extended while some other task is reading. > > Yes. I added some debugging statements to look at the writeout path. > > I think the following happens: > > - page 0 gets partially written to by app > - VM writes out partial dirty page 0 > - page 0 gets fully written by app > - page 1 gets partially written by app > - VM writes out dirty page 1 > > At this point there is a hole in the file. The tail end of page 0 is > still not written to server. > > - VM writes out dirty page 0 > ... > >> AFAICS, this sort of behaviour has _always_ been possible. I can't see >> how reverting anything will fix it. > > Here is the crux. It was possible previously but unlikely e.g. our app > never saw this behavior. The new writeout semantics causes visible > holes in files often. > > Anyway, I agree the new writeout semantics are allowed and possibly > saner than the previous writeout path. The problem is that it is > __annoying__ for this use case (log files). > > I'm not sure if there is an easy solution. We want the VM to writeout > the address space in order. Maybe we can start the scan for dirty > pages at the last page we wrote out i.e. page 0 in the example above?
Why can't you use O_SYNC | O_APPEND ? -- Chuck Lever --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
blocks of zeros (NULLs) in NFS files in kernels >= 2.6.20
, Aaron Straus
, (Fri Sep 5, 12:19 pm)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Chuck Lever
, (Fri Sep 5, 12:56 pm)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Aaron Straus
, (Fri Sep 5, 1:04 pm)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Bernd Eckenfels
, (Fri Sep 5, 1:36 pm)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Chuck Lever
, (Fri Sep 5, 1:36 pm)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Aaron Straus
, (Fri Sep 5, 3:14 pm)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Aaron Straus
, (Fri Sep 5, 5:03 pm)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Aaron Straus
, (Mon Sep 8, 12:02 pm)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Chuck Lever
, (Mon Sep 8, 2:15 pm)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Aaron Straus
, (Mon Sep 8, 3:02 pm)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Aaron Straus
, (Tue Sep 9, 12:46 pm)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Chuck Lever
, (Thu Sep 11, 9:55 am)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Aaron Straus
, (Thu Sep 11, 10:19 am)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Chuck Lever
, (Thu Sep 11, 10:48 am)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Aaron Straus
, (Thu Sep 11, 11:49 am)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Hans-Peter Jansen
, (Mon Sep 22, 9:05 am)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Trond Myklebust
, (Mon Sep 22, 9:35 am)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Aaron Straus
, (Mon Sep 22, 10:04 am)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Chuck Lever
, (Mon Sep 22, 10:26 am)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Trond Myklebust
, (Mon Sep 22, 10:29 am)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Aaron Straus
, (Mon Sep 22, 10:37 am)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Aaron Straus
, (Mon Sep 22, 10:45 am)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Aaron Straus
, (Mon Sep 22, 11:43 am)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Hans-Peter Jansen
, (Mon Sep 22, 11:45 am)
Re: [NFS] blocks of zeros (NULLs) in NFS files in kernels ...
, Hans-Peter Jansen
, (Mon Sep 22, 11:45 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Brownell
Re: build #337 failed for 2.6.24-rc1-gb1d08ac In function `usbnet_set_settings':
Eberhard Moenkeberg
Re: OT: character encodings (was: Linux 2.6.20-rc4)
Andy Walls
Re: [PATCH 11/32] v4l/cx18: update workqueue usage
Thomas Gleixner
[patch -mm 19/28] x86_64: Use generic cmos update
Casey Schaufler
Re: [PATCH] Smack: Simplified Mandatory Access Control Kernel
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Michael Witten
Re: 'git gc --aggressive' effectively unusable
Eric Raymond
git status --porcelain is a mess that needs fixing
Laflen, Brandon (GE, Research)
RE: fatal: Unable to find remote helper for 'http'
linux-netdev
:
David Miller
Re: [PATCH 32/53] netns xfrm: finding policy in netns
Jean-Louis Dupond
Re: tg3 driver not advertising 1000mbit
Jan Engelhardt
[PATCH 1/3] net: tcp: make hybla selectable as default congestion module
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Eric Dumazet
Re: HTB accuracy on 10GbE
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB (8018): Add em2860 chip ID
Linux Kernel Mailing List
[ARM] unconditionally define __virt_to_phys and __phys_to_virt
Linux Kernel Mailing List
ACPICA: Fix to allow zero-length ASL field declarations
Linux Kernel Mailing List
ARM: Add Versatile Express SMP support
Linux Kernel Mailing List
ixgbe: fix automatic LRO/RSC settings for low latency
openbsd-misc
:
Samuel Baldwin
Re: Forum engine
Robert
disklabel - cylinder rounding
nixlists
Re: Which laptops do the developers use?
Claudio Jeker
Re: OT: Python (was Re: vi in /bin)
L. V. Lammert
OT, .. but has anyone seen a crontab editor
Colocation donated by:
Syndicate