All of lore.kernel.org
 help / color / mirror / Atom feed
From: YuFan Chen <wiz.chen@gmail.com>
To: Li Wang <laurence.liwang@gmail.com>
Cc: Sage Weil <sage@newdream.net>,
	ceph-devel@vger.kernel.org, mingxinliu@ubuntukylin.com
Subject: Re: About the "temperature histogram" of tier-agent
Date: Fri, 1 Dec 2017 23:12:57 +0800	[thread overview]
Message-ID: <CAHMqkF7VNzAMXhDRDaQhmpSjWCM8PWUckzn_P+dKeh+G1F5cTA@mail.gmail.com> (raw)
In-Reply-To: <CAOsMsV1wuXE_mdvggCb7Yjk9WA+Qk31-cZnbzbRx2KfFk935qQ@mail.gmail.com>

Okay. I will do it.

Yufan Chen

2017-12-01 20:56 GMT+08:00 Li Wang <laurence.liwang@gmail.com>:
> Hi,
>   Would you please send a pr to fix this
>
> Cheers,
> Li Wang
>
> 2017-11-30 23:45 GMT+08:00 YuFan Chen <wiz.chen@gmail.com>:
>> Hi,
>>   Yes, it really means the ranking level in a
>>    'temperature' rating scale.
>>   Using 'temp_lower' would be better.
>>
>> Thanks.
>>
>> Yufan Chen
>>
>>
>> Li Wang <laurence.liwang@gmail.com> 於 2017年11月30日 週四 下午4:51 寫道:
>>>
>>> Hi,
>>>   This makes sense, the variable name 'temp_upper' is really confusing
>>> which in fact does not count the number of hot objects. However,
>>> personally,
>>> I prefer use  temp_lower as follows,
>>>
>>> if (temp_lower >= agent_state->evict_effort)
>>>   return false;
>>>
>>> Cheers,
>>> Li Wang
>>>
>>> 2017-11-28 21:20 GMT+08:00 Sage Weil <sage@newdream.net>:
>>> > Hi MingXin, Li,
>>> >
>>> > Does the below make sense to you?
>>> >
>>> > Thanks!
>>> > sage
>>> >
>>> >
>>> > On Tue, 28 Nov 2017, YuFan Chen wrote:
>>> >
>>> >> Hi,
>>> >>
>>> >>    Before Jewel, the code uses "atime" to distinguish hot/cold data:
>>> >>
>>> >>           agent_estimate_atime_temp() calculates the distance.
>>> >>           It means colder data gets longer distance (larger value)
>>> >>
>>> >>
>>> >>    In Jewel, it changes to use temperature with weight.
>>> >>             So, colder data gets smaller value.
>>> >>
>>> >>     However, it still use the "old semantics" to determine evicting or
>>> >> not in
>>> >>            ReplicatedPG::agent_estimate_atime_temp();
>>> >>
>>> >>     if (1000000 - temp_upper >= agent_state->evict_effort)
>>> >>        return false;
>>> >>
>>> >>
>>> >>      if there is no misunderstanding, should it change to that:
>>> >>
>>> >> --- a/src/osd/ReplicatedPG.cc
>>> >> +++ b/src/osd/ReplicatedPG.cc
>>> >> @@ -12211,7 +12211,7 @@ bool
>>> >> ReplicatedPG::agent_maybe_evict(ObjectContextRef& obc, bool
>>> >> after_flush)
>>> >>      delete f;
>>> >>      *_dout << dendl;
>>> >>
>>> >> -    if (1000000 - temp_upper >= agent_state->evict_effort)
>>> >> +    if (temp_upper >= agent_state->evict_effort)
>>> >>        return false;
>>> >>    }
>>> >>
>>> >> Yu Fan
>>> >> --
>>> >> To unsubscribe from this list: send the line "unsubscribe ceph-devel"
>>> >> in
>>> >> the body of a message to majordomo@vger.kernel.org
>>> >> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>> >>
>>> >>
>>> > --
>>> > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>>> > the body of a message to majordomo@vger.kernel.org
>>> > More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2017-12-01 15:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-28  6:38 About the "temperature histogram" of tier-agent YuFan Chen
2017-11-28 13:20 ` Sage Weil
2017-11-30  8:51   ` Li Wang
     [not found]     ` <CAHMqkF5VckeHoMy2qhUR5M=ivzujGTaiAoutjW8LMjL7vQSxtQ@mail.gmail.com>
2017-12-01 12:56       ` Li Wang
2017-12-01 15:12         ` YuFan Chen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHMqkF7VNzAMXhDRDaQhmpSjWCM8PWUckzn_P+dKeh+G1F5cTA@mail.gmail.com \
    --to=wiz.chen@gmail.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=laurence.liwang@gmail.com \
    --cc=mingxinliu@ubuntukylin.com \
    --cc=sage@newdream.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.