Date: Tue, 21 Sep 2010 14:25:03 +0300 From: Andriy Gapon <avg@freebsd.org> To: Andre Oppermann <andre@freebsd.org> Cc: freebsd-fs@freebsd.org, freebsd-net@freebsd.org, Konstantin Belousov <kib@freebsd.org> Subject: Re: zfs very poor performance compared to ufs due to lack of cache? Message-ID: <4C98960F.9020404@freebsd.org> In-Reply-To: <4C90F4F6.209@freebsd.org> References: <5DB6E7C798E44D33A05673F4B773405E@multiplay.co.uk><AANLkTikNhsj5myhQCoPaNytUbpHtox1vg9AZm1N-OcMO@mail.gmail.com><4C85E91E.1010602@icyb.net.ua><4C873914.40404@freebsd.org><20100908084855.GF2465@deviant.kiev.zoral.com.ua><4C874F00.3050605@freebsd.org><A6D7E134B24F42E395C30A375A6B50AF@multiplay.co.uk><4C8D087B.5040404@freebsd.org><03537796FAB54E02959E2D64FC83004F@multiplay.co.uk><4C8D280F.3040803@freebsd.org><3FBF66BF11AA4CBBA6124CA435A4A31B@multiplay.co.uk><4C8E4212.30000@freebsd.org> <B98EBECBD399417CA5390C20627384B1@multiplay.co.uk> <D79F15FEB5794315BD8668E40B414BF0@multiplay.co.uk> <4C90B4C8.90203@freebsd.org> <6DFACB27CA8A4A22898BC81E55C4FD36@multiplay.co.uk> <4C90D3A1.7030008@freebsd.org> <0B1A90A08DFE4ADA9540F9F3846FDF38@multiplay.co.uk> <4C90E328.20606@freebsd.org> <4C90E869.8000400@freebsd.org> <4C90EDA1.6020501@freebsd.org> <4C90F4F6.209@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
on 15/09/2010 19:31 Andriy Gapon said the following: > on 15/09/2010 19:00 Andre Oppermann said the following: >> Is there a quick way of deciding within sendfile(2) whether a file resides >> on a filesystem that doesn't use the buffer cache? > > I don't know of any reliable way to do it. > If I understood correctly what Kostik suggested in a chat, then we could abstract core sendfile<->vm<->fs logic into a new vop, say vop_sendpages (don't mind the name much). std_sendpages would do what code in kern_sendfile does today and would be used by most of filesystems. But some filesystems could override it e.g. to avoid using VM page cache. Or, perhaps, we could even add EXT_ZFSARC type of mbuf that would know how to work with data buffers held in ARC and unhold them when done. That would make sendfile work on ZFS through a single cache. -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C98960F.9020404>