Metadata vs UserData caching in BlueStore
Sage et al,
shouldn't we have bluestore_cache_metadata_ratio set to 1 by default? To concentrate on metadata caching..
IMHO Onode caching is much more important and profitable than user data one. It's rather a client misbehavior to cause cache hit when accessing user data but it's highly expected for onode metadata.
Moreover user data caching is probably already exists at block device level hence we rather duplicate disk cache....
What do you think?
Thanks,
Igor
Quoted 4 lines · Igor Fedotov
Sage et al,
shouldn't we have
bluestore_cache_metadata_ratioset to 1 by default? To concentrate on metadata caching..
I would contend that it should be high (we've already bumped it up, I'd go higher still), but isn't 1 a little excessive? Ultimately this should all be automatic based on heuristics imho.
Quoted 4 lines
IMHO Onode caching is much more important and profitable than user data one. It's rather a client misbehavior to cause cache hit when accessing user data but it's highly expected for onode metadata.
We should take care not to run into the same problem the kernel does. With too many cached entries things can get slow. It's another trade-off we need to watch out for. There may need to be a (hopefully automatically generated) soft limit, and potentially a hard limit.
Quoted 14 lines
Moreover user data caching is probably already exists at block device level hence we rather duplicate disk cache....
What do you think?
Thanks,
Igor
--
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
Quoted 10 lines · Mark Nelson
Quoted 4 lines · Igor Fedotov
Sage et al,
shouldn't we have
bluestore_cache_metadata_ratioset to 1 by default? To concentrate on metadata caching..I would contend that it should be high (we've already bumped it up, I'd go higher still), but isn't 1 a little excessive? Ultimately this should all be automatic based on heuristics imho.
Well, Mark - what's the use case for user data caching? It means that user either retrieves just written data or reads them repeatedly or in an unaligned manner. Or there are multiple users working with the same object. Any of that is IMHO a corner case... That can be handled by using that ratio setting if needed.
Quoted 6 lines
Quoted 4 lines
IMHO Onode caching is much more important and profitable than user data one. It's rather a client misbehavior to cause cache hit when accessing user data but it's highly expected for onode metadata.
We should take care not to run into the same problem the kernel does. With too many cached entries things can get slow. It's another trade-off we need to watch out for. There may need to be a (hopefully automatically generated) soft limit, and potentially a hard limit.
Doesn't our cache size limit server that purpose?
Quoted 15 lines
Quoted 15 lines
Moreover user data caching is probably already exists at block device level hence we rather duplicate disk cache....
What do you think?
Thanks,
Igor
Signature · 3 lines
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
Quoted 25 lines · Igor Fedotov
Quoted 12 lines · Mark Nelson
Quoted 4 lines · Igor Fedotov
Sage et al,
shouldn't we have
bluestore_cache_metadata_ratioset to 1 by default? To concentrate on metadata caching..I would contend that it should be high (we've already bumped it up, I'd go higher still), but isn't 1 a little excessive? Ultimately this should all be automatic based on heuristics imho.
Well, Mark - what's the use case for user data caching? It means that user either retrieves just written data or reads them repeatedly or in an unaligned manner. Or there are multiple users working with the same object.
Any of that is IMHO a corner case... That can be handled by using that ratio setting if needed.Quoted 5 lines
Quoted 4 lines
IMHO Onode caching is much more important and profitable than user data one. It's rather a client misbehavior to cause cache hit when accessing user data but it's highly expected for onode metadata.
Quoted 5 lines
Quoted 4 lines
We should take care not to run into the same problem the kernel does. With too many cached entries things can get slow. It's another trade-off we need to watch out for. There may need to be a (hopefully automatically generated) soft limit, and potentially a hard limit.
Doesn't our cache size limit server that purpose?
I guess I'm thinking of this in the context that eventually we move away from all of the user-defined cache/buffer/etc size limits. Maybe we still have hard imposed maximum limits though, I'm not sure. I guess it depends on whether we can make the autotuning smart enough and how quickly we start hitting CPU limits with tons of entries in cache.
Mark
Quoted 16 lines
Quoted 15 lines
Quoted 15 lines
Moreover user data caching is probably already exists at block device level hence we rather duplicate disk cache....
What do you think?
Thanks,
Igor
--
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
Quoted 13 lines · Igor Fedotov
Quoted 12 lines · Mark Nelson
Quoted 4 lines · Igor Fedotov
Sage et al,
shouldn't we have
bluestore_cache_metadata_ratioset to 1 by default? To concentrate on metadata caching..I would contend that it should be high (we've already bumped it up, I'd go higher still), but isn't 1 a little excessive? Ultimately this should all be automatic based on heuristics imho.
Quoted 5 lines
Well, Mark - what's the use case for user data caching? It means that user either retrieves just written data or reads them repeatedly or in an unaligned manner. Or there are multiple users working with the same object. Any of that is IMHO a corner case... That can be handled by using that ratio setting if needed.
The main one is RGW. The gateways don't do their own caching, and even if they did you often have several of them. CephFS multiclient scenarios can exercise the cache too.
I agree, though. How about .8 or .9?
sage
I don't think Kernel is caching anything as we are using O_DIRECT writes.
I think for random there is no point of caching data but for sequential if we are planning to implement read_ahead in bluestore , data cache should help.
Thanks & Regards
Somnath
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Igor Fedotov
Sent: Thursday, December 15, 2016 9:45 AM
To: Mark Nelson; ceph-devel
Subject: Re: Metadata vs UserData caching in BlueStore
Quoted 12 lines · Mark Nelson
Quoted 4 lines · Igor Fedotov
Sage et al,
shouldn't we have
bluestore_cache_metadata_ratioset to 1 by default? To concentrate on metadata caching..I would contend that it should be high (we've already bumped it up, I'd go higher still), but isn't 1 a little excessive? Ultimately this should all be automatic based on heuristics imho.
Well, Mark - what's the use case for user data caching? It means that user either retrieves just written data or reads them repeatedly or in an unaligned manner. Or there are multiple users working with the same object. Any of that is IMHO a corner case... That can be handled by using that ratio setting if needed.
Quoted 9 lines
Quoted 4 lines
IMHO Onode caching is much more important and profitable than user data one. It's rather a client misbehavior to cause cache hit when accessing user data but it's highly expected for onode metadata.
We should take care not to run into the same problem the kernel does. With too many cached entries things can get slow. It's another trade-off we need to watch out for. There may need to be a (hopefully automatically generated) soft limit, and potentially a hard limit.
Doesn't our cache size limit server that purpose?
Quoted 7 lines
Quoted 7 lines
Moreover user data caching is probably already exists at block device level hence we rather duplicate disk cache....
What do you think?
Quoted 8 lines
Quoted 8 lines
Thanks,
Igor
--
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
--
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
________________________________
PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the designated recipient(s) named above. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender by telephone or e-mail (as shown above) immediately and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).
Quoted 1 line · Somnath Roy
I don't think Kernel is caching anything as we are using
O_DIRECTwrites.
And what's about reading? Does it cache anything?
Quoted 1 line
I think for random there is no point of caching data but for sequential if we are planning to implement
read_aheadin bluestore , data cache should help.
Yeah, I agree that caching is needed for read ahead. But now it's not their so what are we caching user data for?
Quoted 52 lines
Thanks & Regards
Somnath-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Igor Fedotov
Sent: Thursday, December 15, 2016 9:45 AM
To: Mark Nelson; ceph-devel
Subject: Re: Metadata vs UserData caching in BlueStoreQuoted 10 lines · Mark Nelson
Quoted 4 lines · Igor Fedotov
Sage et al,
shouldn't we have
bluestore_cache_metadata_ratioset to 1 by default? To concentrate on metadata caching..I would contend that it should be high (we've already bumped it up, I'd go higher still), but isn't 1 a little excessive? Ultimately this should all be automatic based on heuristics imho.
Well, Mark - what's the use case for user data caching? It means that user either retrieves just written data or reads them repeatedly or in an unaligned manner. Or there are multiple users working with the same object. Any of that is IMHO a corner case... That can be handled by using that ratio setting if needed.
Quoted 7 lines
Quoted 3 lines
IMHO Onode caching is much more important and profitable than user data one. It's rather a client misbehavior to cause cache hit when accessing user data but it's highly expected for onode metadata.
We should take care not to run into the same problem the kernel does. With too many cached entries things can get slow. It's another trade-off we need to watch out for. There may need to be a (hopefully automatically generated) soft limit, and potentially a hard limit.
Doesn't our cache size limit server that purpose?
Quoted 5 lines
Quoted 5 lines
Moreover user data caching is probably already exists at block device level hence we rather duplicate disk cache....
What do you think?
Quoted 8 lines
Quoted 8 lines
Thanks,
Igor
--
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--
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________________________________
PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the designated recipient(s) named above. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender by telephone or e-mail (as shown above) immediately and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).