Re: simplify disksort, please review.
From: Bruce Evans (bde_at_zeta.org.au)
Date: 06/10/05
- Previous message: Roman Neuhauser: "Re: Bug in #! processing - "pear broken on current""
- In reply to: Poul-Henning Kamp: "Re: simplify disksort, please review."
- Next in thread: Antoine Brodin: "Re: simplify disksort, please review."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 10 Jun 2005 23:23:59 +1000 (EST) To: Poul-Henning Kamp <phk@phk.freebsd.dk>
On Thu, 9 Jun 2005, Poul-Henning Kamp wrote:
> In message <20050609193008.GB837@darkness.comp.waw.pl>, Pawel Jakub Dawidek writes:
>
>> The one example of how the order can be broken (write(offset, size)):
>>
>> write(1024, 512)
>> write(0, 2048)
>
> If you issue these two requests just like that, you get no guarantee
> which order they get written in.
>
> It's not just disksort which might surprise you, tagged queuing and
> write caches may mess up your day as well.
Internal (buffer) caches too. For 2 sparate writes there must normally
be 2 separate buffers, and if the buffer data overlaps then the buffers
may be incoherent, especially if they are malloced (which rarely happens
now, so overlapping buffers are more likely to just clobber each other
when their data is written to in memory than their data is to become
incoherent). File systems should use a fixed block size with all buffers
beginning on a block boundary so that they never generate overlapping
buffers.
Bruce
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Roman Neuhauser: "Re: Bug in #! processing - "pear broken on current""
- In reply to: Poul-Henning Kamp: "Re: simplify disksort, please review."
- Next in thread: Antoine Brodin: "Re: simplify disksort, please review."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]