Cache Tiering Investigation and Potential Patch
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 3196669f.9Ro.9Gf.11.jZLaYO-ImYt9qTNe79BDgjK7y7TUQ@public.gmane.org
Quoted 4 lines · Nick Fisk
Presentation from the performance meeting.
I seem to be unable to post to Ceph-devel, so can someone please repost there if useful.
Copying ceph-devel. The problem is just that your email is HTML-formatted. If you send it in plaintext vger won't reject it.
Quoted 5 lines
I will try and get a PR sorted, I realise that this change modifies the way the cache was originally designed but I think it provides a quick win for the performance increase involved. If there are plans for a better solution in time for the next release, then I would be really interested in working to that goal instead.
It's how it was intended/documented to work, so I think this falls in the 'bug fix' category. I did a quick PR here:
https://github.com/ceph/ceph/pull/6702
Does that look right?
Thanks!
sage
A message that is not in the archive (sent off-list or not yet received): alpine.DEB.2.00.1511250936470.11017-vIokxiIdD2AQNTJnQDzGJqxOck334EZe@public.gmane.org
Hi Sage
Quoted 8 lines
-----Original Message-----
From: Sage Weil [mailto:[email protected]]
Sent: 25 November 2015 17:38
To: Nick Fisk <nick-ksME7r3P/[email protected]>
Cc: 'ceph-users' <[email protected]>; [email protected]; 'Mark Nelson' <[email protected]>
Subject: Re: Cache Tiering Investigation and Potential Patch
Quoted 8 lines
Quoted 4 lines · Nick Fisk
Presentation from the performance meeting.
I seem to be unable to post to Ceph-devel, so can someone please repost there if useful.
Copying ceph-devel. The problem is just that your email is HTML-formatted. If you send it in plaintext vger won't reject it.
Right ok, let's see if this gets through.
Quoted 7 lines
Quoted 6 lines
I will try and get a PR sorted, I realise that this change modifies the way the cache was originally designed but I think it provides a quick win for the performance increase involved. If there are plans for a better solution in time for the next release, then I would be really interested in working to that goal instead.
Quoted 6 lines
It's how it was intended/documented to work, so I think this falls in the 'bug fix' category. I did a quick PR here:
https://github.com/ceph/ceph/pull/6702Does that look right?
Yes I think that should definitely be an improvement. I can't quite get my head around how it will perform in instances where you miss 1 hitset but all others are a hit. Like this:
H H H M H H H H H H H H
And recency is set to 8 for example. It maybe that it doesn't have much effect on the overall performance. It might be that there is a strong separation of really hot blocks and hot blocks, but this could turn out to be a good thing.
Would it be useful for me to run all 3 versions (Old, this and mine) through the same performance test I did before?
Also I saw pull request 6623, is it still relevant to get the list order right?
Thanks for your support on this.
Nick
Quoted 3 lines
Thanks!
sage
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 39 lines · Nick Fisk
Hi Sage
Quoted 8 lines
-----Original Message-----
From: Sage Weil [mailto:[email protected]]
Sent: 25 November 2015 17:38
To: Nick Fisk <[email protected]>
Cc: 'ceph-users' <[email protected]>; [email protected]; 'Mark Nelson' <[email protected]>
Subject: Re: Cache Tiering Investigation and Potential PatchQuoted 8 lines
Quoted 4 lines · Nick Fisk
Presentation from the performance meeting.
I seem to be unable to post to Ceph-devel, so can someone please repost there if useful.
Copying ceph-devel. The problem is just that your email is HTML-formatted. If you send it in plaintext vger won't reject it.
Right ok, let's see if this gets through.
Quoted 7 lines
Quoted 6 lines
I will try and get a PR sorted, I realise that this change modifies the way the cache was originally designed but I think it provides a quick win for the performance increase involved. If there are plans for a better solution in time for the next release, then I would be really interested in working to that goal instead.
Quoted 6 lines
It's how it was intended/documented to work, so I think this falls in the 'bug fix' category. I did a quick PR here:
https://github.com/ceph/ceph/pull/6702Does that look right?
Yes I think that should definitely be an improvement. I can't quite get my head around how it will perform in instances where you miss 1 hitset but all others are a hit. Like this:
Quoted 6 lines
H H H M H H H H H H H H
And recency is set to 8 for example. It maybe that it doesn't have much effect on the overall performance. It might be that there is a strong separation of really hot blocks and hot blocks, but this could turn out to be a good thing.
Yeah... In the above case recency 3 would be enough (or 9, depending on whether that's chronological or reverse chronological order). Doing an N out of M or similar is a bit more flexible and probably something we should add on top. (Or, we could change recency to be N/M instead of just N.)
Quoted 2 lines
Would it be useful for me to run all 3 versions (Old, this and mine) through the same performance test I did before?
If you have time, sure! At the very least it'd be great to see the new version go through the same test.
Quoted 2 lines
Also I saw pull request 6623, is it still relevant to get the list order right?
Oh right, I forgot about that one. I'll incorporate that fix and then you can test that version.
Thanks!
sage
A message that is not in the archive (sent off-list or not yet received): alpine.DEB.2.00.1511251137390.11017-vIokxiIdD2AQNTJnQDzGJqxOck334EZe@public.gmane.org
Quoted 58 lines
-----Original Message-----
From: [email protected] [mailto:ceph-devel- [email protected]] On Behalf Of Sage Weil
Sent: 25 November 2015 19:41
To: Nick Fisk <nick-ksME7r3P/[email protected]>
Cc: 'ceph-users' <[email protected]>; [email protected]; 'Mark Nelson' <[email protected]>
Subject: RE: Cache Tiering Investigation and Potential PatchQuoted 17 lines · Nick Fisk
Hi Sage
Quoted 15 lines
-----Original Message-----
From: Sage Weil [mailto:[email protected]]
Sent: 25 November 2015 17:38
To: Nick Fisk <nick-ksME7r3P/[email protected]>
Cc: 'ceph-users' <[email protected]>; [email protected]; 'Mark Nelson' <[email protected]>
Subject: Re: Cache Tiering Investigation and Potential PatchQuoted 4 lines · Nick Fisk
Presentation from the performance meeting.
I seem to be unable to post to Ceph-devel, so can someone please repost there if useful.
Copying ceph-devel. The problem is just that your email is HTML-
formatted.
Quoted 10 lines
Quoted 1 line
If you send it in plaintext vger won't reject it.
Right ok, let's see if this gets through.
Quoted 6 lines
Quoted 6 lines
I will try and get a PR sorted, I realise that this change modifies the way the cache was originally designed but I think it provides a quick win for the performance increase involved. If there are plans for a better solution in time for the next release, then I would be really interested in working to that goal
instead.
Quoted 12 lines
Quoted 7 lines
It's how it was intended/documented to work, so I think this falls in the 'bug fix' category. I did a quick PR here:
https://github.com/ceph/ceph/pull/6702Does that look right?
Yes I think that should definitely be an improvement. I can't quite get my head around how it will perform in instances where you miss 1 hitset but all others are a hit. Like this:
Quoted 6 lines
H H H M H H H H H H H H
And recency is set to 8 for example. It maybe that it doesn't have much effect on the overall performance. It might be that there is a strong separation of really hot blocks and hot blocks, but this could turn out to be a good thing.
Quoted 5 lines
Yeah... In the above case recency 3 would be enough (or 9, depending on whether that's chronological or reverse chronological order). Doing an N out of M or similar is a bit more flexible and probably something we should add on top. (Or, we could change recency to be N/M instead of just N.)
N out of M, is that similar to what I came up with but combined with the N most recent sets?
If you can wait a couple of days I will run the PR in its current state through my test box and see how it looks.
Just a quick question, is there a way to just make+build the changed files/package or select just to build the main ceph.deb. I'm just using " sudo dpkg-buildpackage" at the moment and its really slowing down any testing I'm doing waiting for everything to rebuild.
Quoted 19 lines
Quoted 3 lines
Would it be useful for me to run all 3 versions (Old, this and mine) through the same performance test I did before?
If you have time, sure! At the very least it'd be great to see the new version go through the same test.
Quoted 2 lines
Also I saw pull request 6623, is it still relevant to get the list order right?
Oh right, I forgot about that one. I'll incorporate that fix and then you can test that version.
Thanks!
sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): d2bef9c0.9Ro.9Gf.1R.jZVKGC-ImYt9qTNe79BDgjK7y7TUQ@public.gmane.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
I think if it is not too much, we would like N out of M.
I don't know specifically about only building the one package, but I build locally with make to shake out any syntax bugs, then I run make-debs.sh which takes about 10-15 minutes to build to install on my test cluster. It still builds more packages than I need. Be sure you have ccache installed and configured, that helps a lot. I'm still trying to figure out the best way to build too.
-----BEGIN PGP SIGNATURE-----
Version: Mailvelope v1.2.3
Comment: https://www.mailvelope.com
wsFcBAEBCAAQBQJWVhxXCRDmVDuy+mK58QAAWyMP/1rQgDr1lAR8ra2y16zv 0S73cJdxZ/YlbILThDobtQw487YIZMg0vYNZGeYU1//KtZjiAQ2izv1ZLIjz 3Xemn+hx79aWL3uHFTbiK69HsbeURSeyS99g+8rGxc0X7gXrDhqhbThT+QqY N3osIEGqVCVWftAnj/ttMd6+CM7x2cxMtM/ALDQTDFu7DzUKLWs7fqtdX3uh MeoB2pW9ZQE4YSLs0JhmRanhqjt0ygJ4R73Uge+fnqibM7jquchdgj1X9GHG M/w4n4n5Tw6GUfIX2ivpnJuMyKyaeI0+2rSMyfaHwI714YqBNRRga7MMzmvH a5NHVgjoWkys3cnIjblcTzgp+Un+av7tZ8sHXJjvJxu7wcGvWhUtwogn3LMN KNzN+5Ae0kOBvgXvQ0a8hbvOW3tMkfzEVo2s7UhX7ZthAy11toVV27E50pJj zeTJqMBWRn8Q+qn0k3mfzciTYoFZN7TmSoK+BWUajhm0dA6q9ce99Huz5lIu +FpcqfLhA9//E4eYRYaUGRDuhcxdaSS4PbZzHPnKlEZYVFHYq3kYWRYET0I9 N9S8jknW+vIJnMiVwKfalz5poX9OCgMvJwXtWCzxZi0scwU6iM4GvpigcgVO Gk0DlEQG+94+giGLqRf67R5w9kdlB6SE7n50tSNgzDUQw0NjadSoi2YDkU3q O/Zx
=IwXm
-----END PGP SIGNATURE-----
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 11 lines · Nick Fisk
Quoted 11 lines
Quoted 10 lines
Yes I think that should definitely be an improvement. I can't quite get my head around how it will perform in instances where you miss 1 hitset but all others are a hit. Like this:
H H H M H H H H H H H H
And recency is set to 8 for example. It maybe that it doesn't have much effect on the overall performance. It might be that there is a strong separation of really hot blocks and hot blocks, but this could turn out to be a good thing.
Quoted 8 lines
Quoted 5 lines
Yeah... In the above case recency 3 would be enough (or 9, depending on whether that's chronological or reverse chronological order). Doing an N out of M or similar is a bit more flexible and probably something we should add on top. (Or, we could change recency to be N/M instead of just N.)
N out of M, is that similar to what I came up with but combined with the N most recent sets?
Yeah
Quoted 2 lines
If you can wait a couple of days I will run the PR in its current state through my test box and see how it looks.
Sounds great, thanks.
Quoted 4 lines
Just a quick question, is there a way to just make+build the changed files/package or select just to build the main ceph.deb. I'm just using " sudo dpkg-buildpackage" at the moment and its really slowing down any testing I'm doing waiting for everything to rebuild.
You can probably 'make ceph-osd' and manualy copy that binary into place, assuming distro matches your build and test environments...
sage
A message that is not in the archive (sent off-list or not yet received): alpine.DEB.2.00.1511251240010.11017-vIokxiIdD2AQNTJnQDzGJqxOck334EZe@public.gmane.org
Hi Sage/Mark,
I have completed some initial testing of the tiering fix PR you submitted compared to my method I demonstrated at the perf meeting last week.
From a high level both have very similar performance when compared to the current broken behaviour. So I think until Jewel, either way would suffice in fixing the bug.
I have also been running several tests with different cache sizes and recency settings to try and determine if there is any performance differences.
The main thing I have noticed is that when it is based on actual recency method in your PR, you run out of adjustment resolution down the low end of the recency scale. The difference between objects which are in 1,2 or 3 concurrent hit sets is quite large and dramatically affects the promotion behaviour. After that though, there is not much difference between setting it to 3 or setting it to 9, a sort of logarithmic effect. This looks like it might have an impact on being able to tune it to the right setting to be able to fill the cache tier. After the cache had the really hot blocks in it, the promotions tailed off and the tier wouldn't fill up as there just wasn't any more objects getting hit 3 or 4 times in a row. If I dropped the recency down by 1, then there were too many promotions.
In short, if you set the recency anywhere between 3-4 and max(10) then you were pretty much guaranteed reasonable performance with a zipf1.1 profile that I tested with.
With my method, it seemed to have a more linear response and hence more adjustment resolution, but you needed to be a bit more clever about picking the right number. With a zipf1.1 profile and a cache size of around 15% of the volume, a recency setting between 6 and 8 (out of 10 hitsets) provided the best performance. Higher recency meant the cache couldn't find hot enough objects to promote, lower resulted in too many promotions. I think if you take the cache size percentage, then invert it and double it, this should give you a rough idea of the required recency setting. Ie 20% cache size = 6 recency for 10 hitsets. 10% cache size would be 8 for 10 hitsets.
It could probably also do with some logic to promote really hot blocks faster. I'm guessing a combination of the two methods would probably be fairly simple to implement and provide the best gain.
Promote IF
1. Total number of hits in all hitsets > required count
2. Object is in last N recent hitsets
But as I touched on above, both of these methods are still vastly improved on the current code and it might be that it's not worth doing much more work on this, if a proper temperature based list method is likely to be implemented.
I can try and get some graphs captured and jump on the perf meeting tomorrow if it would be useful?
I also had a bit of a think about what you said regarding only keeping 1 copy for non dirty objects and the potential write amplification involved. If we had a similar logic to maybe_promote(), like maybe_dirty(), which would only dirty a block in the cache tier if it's very very hot, otherwise the write gets proxied. That should limit the amount of objects requiring extra copies to be generated every time there is a write. The end user may also want to turn off write caching altogether so that all writes are proxied to take advantage of larger read cache.
Nick
Quoted 51 lines
-----Original Message-----
From: [email protected] [mailto:ceph-devel- [email protected]] On Behalf Of Sage Weil
Sent: 25 November 2015 20:41
To: Nick Fisk <nick-ksME7r3P/[email protected]>
Cc: 'ceph-users' <[email protected]>; [email protected]; 'Mark Nelson' <[email protected]>
Subject: RE: Cache Tiering Investigation and Potential PatchQuoted 18 lines · Nick Fisk
Quoted 11 lines
Quoted 10 lines
Yes I think that should definitely be an improvement. I can't quite get my head around how it will perform in instances where you miss 1 hitset but all others are a hit. Like this:
H H H M H H H H H H H H
And recency is set to 8 for example. It maybe that it doesn't have much effect on the overall performance. It might be that there is a strong separation of really hot blocks and hot blocks, but this could turn out to be a good thing.
Quoted 6 lines
Yeah... In the above case recency 3 would be enough (or 9, depending on whether that's chronological or reverse chronological order). Doing an N out of M or similar is a bit more flexible and probably something we should add on top. (Or, we could change recency to be N/M instead of just
N.)Quoted 2 lines
N out of M, is that similar to what I came up with but combined with the N most recent sets?
Yeah
Quoted 2 lines
If you can wait a couple of days I will run the PR in its current state through my test box and see how it looks.
Sounds great, thanks.
Quoted 4 lines
Just a quick question, is there a way to just make+build the changed files/package or select just to build the main ceph.deb. I'm just using " sudo dpkg-buildpackage" at the moment and its really slowing down any testing I'm doing waiting for everything to rebuild.
You can probably 'make ceph-osd' and manualy copy that binary into place, assuming distro matches your build and test environments...
sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 10fc7407.9Ro.9Gf.2g.k75t9O-ImYt9qTNe79BDgjK7y7TUQ@public.gmane.org
Quoted 9 lines · Nick Fisk
Hi Sage/Mark,
I have completed some initial testing of the tiering fix PR you submitted compared to my method I demonstrated at the perf meeting last week.
From a high level both have very similar performance when compared to the current broken behaviour. So I think until Jewel, either way would suffice in fixing the bug.
I have also been running several tests with different cache sizes and recency settings to try and determine if there is any performance differences.
The main thing I have noticed is that when it is based on actual recency method in your PR, you run out of adjustment resolution down the low end of the recency scale. The difference between objects which are in 1,2 or 3 concurrent hit sets is quite large and dramatically affects the promotion behaviour. After that though, there is not much difference between setting it to 3 or setting it to 9, a sort of logarithmic effect. This looks like it might have an impact on being able to tune it to the right setting to be able to fill the cache tier. After the cache had the really hot blocks in it, the promotions tailed off and the tier wouldn't fill up as there just wasn't any more objects getting hit 3 or 4 times in a row. If I dropped the recency down by 1, then there were too many promotions
.
Quoted 4 lines
In short, if you set the recency anywhere between 3-4 and max(10) then you were pretty much guaranteed reasonable performance with a zipf1.1 profile that I tested with.
With my method, it seemed to have a more linear response and hence more adjustment resolution, but you needed to be a bit more clever about picking the right number. With a zipf1.1 profile and a cache size of around 15% of the volume, a recency setting between 6 and 8 (out of 10 hitsets) provided the best performance. Higher recency meant the cache couldn't find hot enough objects to promote, lower resulted in too many promotions. I think if you take the cache size percentage, then invert it and double it, this should give you a rough idea of the required recency setting. Ie 20% cache size = 6 recency for 10 hitsets. 10% cache size would be 8 for 10 hitsets.
Very interesting Nick! thanks for digging into all of this! Forgive me since it's been a little while since I've thought about this, but do you see either method as being more amenable to autotuning? I think ultimately we need to be able to deal with rejecting promotions on an as-needed basis based on some kind of heuristics (size + completion time perhaps).
Quoted 10 lines
It could probably also do with some logic to promote really hot blocks faster. I'm guessing a combination of the two methods would probably be fairly simple to implement and provide the best gain.
Promote IF
1. Total number of hits in all hitsets > required count
2. Object is in last N recent hitsetsBut as I touched on above, both of these methods are still vastly improved on the current code and it might be that it's not worth doing much more work on this, if a proper temperature based list method is likely to be implemented.
I can try and get some graphs captured and jump on the perf meeting tomorrow if it would be useful?
That would be great if you have the time! I may not be able to make it tomorrow, but I'll try to be there if I can.
Quoted 61 lines
I also had a bit of a think about what you said regarding only keeping 1 copy for non dirty objects and the potential write amplification involved. If we had a similar logic to
maybe_promote(), likemaybe_dirty(), which would only dirty a block in the cache tier if it's very very hot, otherwise the write gets proxied. That should limit the amount of objects requiring extra copies to be generated every time there is a write. The end user may also want to turn off write caching altogether so that all writes are proxied to take advantage of larger read cache.Nick
Quoted 51 lines
-----Original Message-----
From: [email protected] [mailto:ceph-devel- [email protected]] On Behalf Of Sage Weil
Sent: 25 November 2015 20:41
To: Nick Fisk <nick-ksME7r3P/[email protected]>
Cc: 'ceph-users' <[email protected]>; [email protected]; 'Mark Nelson' <[email protected]>
Subject: RE: Cache Tiering Investigation and Potential PatchQuoted 18 lines · Nick Fisk
Quoted 11 lines
Quoted 10 lines
Yes I think that should definitely be an improvement. I can't quite get my head around how it will perform in instances where you miss 1 hitset but all others are a hit. Like this:
H H H M H H H H H H H H
And recency is set to 8 for example. It maybe that it doesn't have much effect on the overall performance. It might be that there is a strong separation of really hot blocks and hot blocks, but this could turn out to be a good thing.
Quoted 6 lines
Yeah... In the above case recency 3 would be enough (or 9, depending on whether that's chronological or reverse chronological order). Doing an N out of M or similar is a bit more flexible and probably something we should add on top. (Or, we could change recency to be N/M instead of just
N.)Quoted 2 lines
N out of M, is that similar to what I came up with but combined with the N most recent sets?
Yeah
Quoted 2 lines
If you can wait a couple of days I will run the PR in its current state through my test box and see how it looks.
Sounds great, thanks.
Quoted 4 lines
Just a quick question, is there a way to just make+build the changed files/package or select just to build the main ceph.deb. I'm just using " sudo dpkg-buildpackage" at the moment and its really slowing down any testing I'm doing waiting for everything to rebuild.
You can probably 'make ceph-osd' and manualy copy that binary into place, assuming distro matches your build and test environments...
sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 54 lines
-----Original Message-----
From: [email protected] [mailto:ceph-devel- [email protected]] On Behalf Of Mark Nelson
Sent: 01 December 2015 16:58
To: Nick Fisk <nick-ksME7r3P/[email protected]>; 'Sage Weil' <[email protected]>
Cc: 'ceph-users' <[email protected]>; [email protected]
Subject: Re: Cache Tiering Investigation and Potential PatchQuoted 3 lines · Nick Fisk
Hi Sage/Mark,
I have completed some initial testing of the tiering fix PR you submitted
compared to my method I demonstrated at the perf meeting last week.
Quoted 2 lines
From a high level both have very similar performance when compared to
the current broken behaviour. So I think until Jewel, either way would suffice in fixing the bug.
Quoted 2 lines
I have also been running several tests with different cache sizes and
recency settings to try and determine if there is any performance differences.
Quoted 2 lines
The main thing I have noticed is that when it is based on actual recency
method in your PR, you run out of adjustment resolution down the low end of the recency scale. The difference between objects which are in 1,2 or 3 concurrent hit sets is quite large and dramatically affects the promotion behaviour. After that though, there is not much difference between setting it to 3 or setting it to 9, a sort of logarithmic effect. This looks like it might have an impact on being able to tune it to the right setting to be able to fill the cache tier. After the cache had the really hot blocks in it, the promotions tailed off and the tier wouldn't fill up as there just wasn't any more objects getting hit 3 or 4 times in a row. If I dropped the recency down by 1, then there were too many promotions.
Quoted 2 lines
In short, if you set the recency anywhere between 3-4 and max(10) then
you were pretty much guaranteed reasonable performance with a zipf1.1 profile that I tested with.
Quoted 2 lines
With my method, it seemed to have a more linear response and hence
more adjustment resolution, but you needed to be a bit more clever about picking the right number. With a zipf1.1 profile and a cache size of around 15% of the volume, a recency setting between 6 and 8 (out of 10 hitsets) provided the best performance. Higher recency meant the cache couldn't find hot enough objects to promote, lower resulted in too many promotions. I think if you take the cache size percentage, then invert it and double it, this should give you a rough idea of the required recency setting. Ie 20% cache size = 6 recency for 10 hitsets. 10% cache size would be 8 for 10 hitsets.
Quoted 5 lines
Very interesting Nick! thanks for digging into all of this! Forgive me since it's been a little while since I've thought about this, but do you see either method as being more amenable to autotuning? I think ultimately we need to be able to deal with rejecting promotions on an as-needed basis based on some kind of heuristics (size + completion time perhaps).
I think a combination of the 2 methods gets you as far as you can without developing some sort of queue/list based system. I don't know if you had a chance to read through the rest of the presentation I posted after the meeting, but 1 slide had a bit of a brain dump where blocks jumped up a queue the hotter they became. I think something like that would be one way of improving it as you are not limited by specifying hitsets/hit_counts/hits_recency...etc
In theory something like that should be more automated as its not reliant on set values, rather each objects hotness competes with other objects hotness. Saying that, it was just something I thought about on the train into work and no doubt I have missed something.
Also when the promotion throttling code makes it in, that should help as well.
Quoted 95 lines
Quoted 3 lines
It could probably also do with some logic to promote really hot blocks
faster. I'm guessing a combination of the two methods would probably be fairly simple to implement and provide the best gain.
Quoted 6 lines
Promote IF
1. Total number of hits in all hitsets > required count 2. Object is in last N recent hitsetsBut as I touched on above, both of these methods are still vastly improved
on the current code and it might be that it's not worth doing much more work on this, if a proper temperature based list method is likely to be implemented.
Quoted 2 lines
I can try and get some graphs captured and jump on the perf meeting
tomorrow if it would be useful?
That would be great if you have the time! I may not be able to make it tomorrow, but I'll try to be there if I can.
Quoted 3 lines
I also had a bit of a think about what you said regarding only keeping 1 copy
for non dirty objects and the potential write amplification involved. If we had a similar logic to
maybe_promote(), likemaybe_dirty(), which would only dirty a block in the cache tier if it's very very hot, otherwise the write gets proxied. That should limit the amount of objects requiring extra copies to be generated every time there is a write. The end user may also want to turn off write caching altogether so that all writes are proxied to take advantage of larger read cache.Quoted 26 lines
Nick
Quoted 23 lines
-----Original Message-----
From: [email protected] [mailto:ceph-devel- [email protected]] On Behalf Of Sage Weil
Sent: 25 November 2015 20:41
To: Nick Fisk <nick-ksME7r3P/[email protected]>
Cc: 'ceph-users' <[email protected]>; [email protected]; 'Mark Nelson' <[email protected]>
Subject: RE: Cache Tiering Investigation and Potential PatchQuoted 13 lines · Nick Fisk
Quoted 13 lines
Quoted 10 lines
Yes I think that should definitely be an improvement. I can't quite get my head around how it will perform in instances where you miss 1 hitset but all others are a hit. Like this:
H H H M H H H H H H H H
And recency is set to 8 for example. It maybe that it doesn't have much effect on the overall performance. It might be that there is a strong separation of really hot blocks and hot blocks, but this could turn out to be a good thing.
Yeah... In the above case recency 3 would be enough (or 9, depending on whether that's chronological or reverse chronological
order).
Quoted 20 lines
Quoted 20 lines
Quoted 7 lines
Quoted 4 lines
Doing an N out of M or similar is a bit more flexible and probably something we should add on top. (Or, we could change recency to be N/M instead of just
N.)N out of M, is that similar to what I came up with but combined with the N most recent sets?
Yeah
Quoted 2 lines
If you can wait a couple of days I will run the PR in its current state through my test box and see how it looks.
Sounds great, thanks.
Quoted 4 lines
Just a quick question, is there a way to just make+build the changed files/package or select just to build the main ceph.deb. I'm just using " sudo dpkg-buildpackage" at the moment and its really slowing down any testing I'm doing waiting for everything to rebuild.
Quoted 7 lines
Quoted 7 lines
You can probably 'make ceph-osd' and manualy copy that binary into place, assuming distro matches your build and test environments...
sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] Moremajordomo
Quoted 5 lines
Quoted 1 line
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html