Re: [PATCH 0/6] scattered page writeback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 7, 2016 at 3:05 PM, Yan, Zheng <zyan@xxxxxxxxxx> wrote:
> This series adds scattered page writeback, which uses one OSD request
> to writeback nonconsecutive dirty page within single strip. Scattered
> page writeback can increase performance of buffered random writes.

Hi Zheng,

I took a cursory look at this and I really wonder if turning an OSD
request with its two messages into an ad-hoc dynamic array and using it
like that is a good idea.  ceph_writepages_start() is one easy to
follow function - is there no way to pre-calculate the number of dirty
pages we'd want to stuff into a single request, or at least estimate
it?  With the geometric expansion you've got in there, you'd go 3 ->
6 -> 12 -> 16 for a 16 page strip?  That seems suboptimal...

A couple of implementation details in libceph that stood out:

- Why use ceph_kvmalloc() for r_ops array?  It's at most ~2k, so you'd
  only be using vmalloc() as a fallback and we don't want to do that.

- Moving reply_op_{len,result} into ceph_osd_req_op to save memory is
  the right thing, but, continuing on that, why waste r_inline_ops in
  the >CEPH_OSD_INITIAL_OP case?  That's almost a quarter of r_ops max
  capacity - ~500 bytes for each "fat" request.

- Why is it that request message's front is enlarged proportionally to
  max_ops, while reply message's front is always enlarged by
  (MAX-INITIAL)*foo?  Shouldn't it be proportional to max_ops as well?
  It definitely deserves a comment, if not.

- The "4" in (sizeof(struct ceph_osd_op) + 4) also deserves a comment.
  I had to go and look to figure out that it's for reply_op_result.

Thanks,

                Ilya
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux