Re: [PATCH 0/7] OMFS filesystem version 3

From: Bob Copeland
Date: Fri Apr 18 2008 - 13:48:51 EST


On Fri, Apr 18, 2008 at 1:35 PM, Szabolcs Szakacsits <szaka@xxxxxxxxxxx> wrote:
> The major reason seems to be that the FUSE version reads heavily from the
> block device during pure write operations, while the kernel driver never.
> There can be several non-exclusive explanations.

Yep, I suspect switching to the lower-level API plus switching to mmap()
and getting rid of various memcpy's in omfs.c would make a huge difference.
And also drop the line count without the hash table stuff.

> Moreover when you're writing to a block device from user space then the
> size and position of the block should be page aligned, otherwise you end up
> doing unwanted synchronous reads instead of the believed asynchronous
> writes.

Cool, thanks for the tips!

--
Bob Copeland %% www.bobcopeland.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/