Re: [PATCH 2/7] Add support for per-file stream ID

2015-04-18 Thread Jens Axboe
On 04/09/2015 05:22 PM, Andreas Dilger wrote: On Mar 25, 2015, at 9:07 AM, Jens Axboe wrote: Writing on flash devices can be much more efficient, if we can inform the device what kind of data can be grouped together. If the device is able to group data together with similar lifetimes, then it

Re: [PATCH 2/7] Add support for per-file stream ID

2015-04-18 Thread Jens Axboe
On 04/09/2015 05:22 PM, Andreas Dilger wrote: On Mar 25, 2015, at 9:07 AM, Jens Axboe ax...@fb.com wrote: Writing on flash devices can be much more efficient, if we can inform the device what kind of data can be grouped together. If the device is able to group data together with similar

Re: [PATCH 2/7] Add support for per-file stream ID

2015-04-09 Thread Jens Axboe
On 04/09/2015 03:30 AM, Dmitry Monakhov wrote: Jens Axboe writes: One small question. You states that all IDs are equals but can we reserve some IDs for internal kernel purposes. For example very short lived data (files opened with O_TEMP) and so on. Yes, we probably should end up reserving

Re: [PATCH 2/7] Add support for per-file stream ID

2015-04-09 Thread Dmitry Monakhov
Jens Axboe writes: One small question. You states that all IDs are equals but can we reserve some IDs for internal kernel purposes. For example very short lived data (files opened with O_TEMP) and so on. Also small nitpicking see below. > Writing on flash devices can be much more efficient, if

Re: [PATCH 2/7] Add support for per-file stream ID

2015-04-09 Thread Jens Axboe
On 04/09/2015 03:30 AM, Dmitry Monakhov wrote: Jens Axboe ax...@fb.com writes: One small question. You states that all IDs are equals but can we reserve some IDs for internal kernel purposes. For example very short lived data (files opened with O_TEMP) and so on. Yes, we probably should end

Re: [PATCH 2/7] Add support for per-file stream ID

2015-04-09 Thread Dmitry Monakhov
Jens Axboe ax...@fb.com writes: One small question. You states that all IDs are equals but can we reserve some IDs for internal kernel purposes. For example very short lived data (files opened with O_TEMP) and so on. Also small nitpicking see below. Writing on flash devices can be much more

[PATCH 2/7] Add support for per-file stream ID

2015-03-25 Thread Jens Axboe
Writing on flash devices can be much more efficient, if we can inform the device what kind of data can be grouped together. If the device is able to group data together with similar lifetimes, then it can be more efficient in garbage collection. This, in turn, leads to lower write amplification,

[PATCH 2/7] Add support for per-file stream ID

2015-03-25 Thread Jens Axboe
Writing on flash devices can be much more efficient, if we can inform the device what kind of data can be grouped together. If the device is able to group data together with similar lifetimes, then it can be more efficient in garbage collection. This, in turn, leads to lower write amplification,