[lkml]   [2011]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 02/18] writeback: dirty position control
    On Sun, Sep 04, 2011 at 09:53:07AM +0800, Wu Fengguang wrote:

    > - in memory tight systems, (1) becomes strong enough to squeeze dirty
    > pages inside the control scope
    > - in large memory systems where the "gravity" of (1) for pulling the
    > dirty pages to setpoint is too weak, (2) can back (1) up and drive
    > dirty pages to bdi_setpoint ~= setpoint reasonably fast.
    > Unfortunately in JBOD setups, the fluctuation range of bdi threshold
    > is related to memory size due to the interferences between disks. In
    > this case, the bdi slope will be weighted sum of write_bw and bdi_thresh.

    Can you please elaborate a little more that what changes in JBOD setup.

    > Given equations
    > span = x_intercept - bdi_setpoint
    > k = df/dx = - 1 / span
    > and the extremum values
    > span = bdi_thresh
    > dx = bdi_thresh
    > we get
    > df = - dx / span = - 1.0
    > That means, when bdi_dirty deviates bdi_thresh up, pos_ratio and hence
    > task ratelimit will fluctuate by -100%.

    I am not sure I understand above calculation. I understood the part that
    for single bdi case, you want 12.5% varation of bdi_setpoint over a
    range of write_bw [SP-write_bw/2, SP+write_bw/2]. This requirement will
    lead to.

    k = -1/8*write_bw

    OR span = 8*write_bw, hence
    k= -1/span

    Now I missed the part that what is different in case of JBOD setup and
    how do you come up with values for that setup so that slope of bdi
    setpoint is sharper.

    IIUC, in case of single bdi case you want to use k=-1/(8*write_bw) and in
    case of JBOD you want to use k=-1/(bdi_thresh)?

    That means for single bdi case you want to trust bdi, write_bw but in
    case of JBOD you stop trusting that and just switch to bdi_thresh. Not
    sure what does it mean.


     \ /
      Last update: 2011-09-06 20:23    [W:0.021 / U:6.164 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site