Skip to content

hashserv unihash cache

Tobias Hagelborn openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1hashserv: Unihash cachelib/hashserv/server.py+159 -291 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] hashserv unihash cache

I saw that the ratio of reads to inserts in our hasherv is ~10:1. So I have added a cache for unihash reads to somewhat off-load the hashserver. This since it rapidly becomes CPU bound and also that it is unresponsive during cleanup operations like vacuum. This goes for the classic sqlite based solution.

We have run this cache in production now with and it seems to do OK so I would like to share it either as a contribution or an idea for improvement.

Tobias Hagelborn (1):
hashserv: Unihash cache

 lib/hashserv/server.py | 188 ++++++++++++++++++++++++++++++++++-------
 1 file changed, 159 insertions(+), 29 deletions(-)
Signature · 1 line
2.30.2