lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAH9JG2W9AgrgLwwkTQKGY60A2pXe50eLn128qtA6ZXiGWJsqCQ@mail.gmail.com>
Date:	Fri, 12 Aug 2011 11:27:41 +0900
From:	Kyungmin Park <kmpark@...radead.org>
To:	Vivek Goyal <vgoyal@...hat.com>
Cc:	Jens Axboe <jaxboe@...ionio.com>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"arnd@...db.de" <arnd@...db.de>,
	"jh80.chung@...sung.com" <jh80.chung@...sung.com>,
	"shli@...nel.org" <shli@...nel.org>,
	"linux-mmc@...r.kernel.org" <linux-mmc@...r.kernel.org>
Subject: Re: [RFC PATCH v2] Add new elevator ops for request hint

On Thu, Aug 11, 2011 at 11:09 PM, Vivek Goyal <vgoyal@...hat.com> wrote:
> On Thu, Aug 11, 2011 at 03:41:15PM +0200, Jens Axboe wrote:
>> On 2011-08-11 15:33, Vivek Goyal wrote:
>> > On Thu, Aug 11, 2011 at 09:42:16AM +0900, Kyungmin Park wrote:
>> >> Hi Jens
>> >>
>> >> Now eMMC device requires the upper layer information to improve the data
>> >> performance and reliability.
>> >>
>> >> . Context ID
>> >> Using the context information, it can sort out the data internally and improve the performance.
>> >> The main problem is that it's needed to define "What's the context".
>> >> Actually I expect cfq queue has own unique ID but it doesn't so decide to use the pid instead
>> >>
>> >
>> > Hi,
>> >
>> > Can you please give little more details about the optimization you will
>> > do with this pid information?
>>
>> It is provided in one of the other email threads for this patch.
>
> Ok, thanks. I just read the other mail thread.
>
> So the idea is that when multiple requests from multiple processes are
> in flight in driver, then using context information (pid in this case),
> driver can potentially do more efficient scheduling of these requests.
>
> CFQ kind of already does that atleast for sync-idle queues as driver will
> see requests only from one context for extended period of time. So this
> optimization is primarily useful for random reads and writer queues where
> we do not idle. (Well if rotational=0, then we don't idle on even on
> sync-idle so not sure if these mmc chips set rotational=0 or not).

Currently mmc set the non-rotational device.
>
>>
>> > Also what happens in the case of noop and deadline which don't maintain
>> > per process queues and can't provide this information.
>>
>> It'll still work, it isn't really tied to the CFQ way of diviying things
>> up.
>
> IIUC, for noop and deadline no optimizatoin will take place as no context
> information is available and things will default back to status quo? Atleast
> this patch implements hook only for CFQ.
now it focuss on the cfq and I don't see any benefit if it uses the
noop and deadline.
>
>>
>> >> First I expect the REQ_META but current ext4 doesn't pass the WRITE_META. only use the READ_META. so it needs to investigate it.
>> >
>> > So are you planning to later fix file systems to appropriately mark meta
>> > data requests?
>>
>> One thing that occured to me is that equating META to HOT is not
>> necessarily a good idea. Meta data isn't necessarily more "hot" than
>> regular data, it all depends on how it's being used. So I think it would
>> be a lot more appropriate to pass down this information specifically,
>> instead of overloading REQ_META.
>
> I think so. I guess it depends on what "HOT" means and filesystem should
> understand REQ_HOT and flag bio/req appropriately.
>
> But if this optimization is especially targeted at meta data, then using
> REQ_META will make sense too.

Right, that's the matter, what's the HOT data? if the filesystem
provides the hot data exactly. it's best. the remaining is the
heuristic.
anyway, host give the hot data information chip, then chip handle it
another place from cold data. e.g., SLC area or some place to improve
the performance and reliability

>
> Whatever flag it is (HOT, META), I am wondering why IO scheduler need to
> come into the picture for this information. This is kind of between
> filesystem and driver. As driver should see all the request flags, it
> should just be able to check for presence of flag and not call into
> elevator/IO scheduler.
>
> On a side note, if we are willing to keep pid/iocontext information in
> struct request, then this optimization should work with noop/deadline too.
Okay, If the concept is accepted.

Thank you,
Kyungmin Park
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ