lkml.org 
[lkml]   [2014]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 0/5] Enable use of Solid State Hybrid Drives
On 2014-10-29 22:19, Dan Williams wrote:
> I understand the desire to have per-io / per-inode xadvise()-style
> hints, but I don't see why not also include a per-pid capability?
>
> Per-pid was not "icky" for flashcache [1]. It let's you flag
> processes that should not pollute the cache, as well "cache warming"
> processes pre-loading sub-ranges of files that is awkward to do with a
> per-inode hint. Per-pid also allows hinting on behalf of other
> otherwise cache-unaware processes.

per-pid is imho fine as well, as long as it's not the primary interface.
I quite like how the io priority works in this regard. If the task has a
priority set, we use that. If you pass in something else, that overrides
the task set one.

per-pid allows you to modify how we treat applications without modifying
the application itself. This is handy for eg streamed backup and
similar, which is most likely why flashcache has it.

--
Jens Axboe



\
 
 \ /
  Last update: 2014-10-30 15:21    [W:0.086 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site