You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I allocate 3G memory for cache. The size of cached data is about 10m terms and the cache memory is almost full.
When I use cache.Get(), I found sometimes it will cost much time in getting some items.
The flame graph shows cache.Get() spent a lot of time in lookup() and entryPtrIdx()
However, after I restart the server and rebuild the cache with the same data(maybe not in the same order), the performance issue disappears. The CPU time of the whole process decreases from more than 10 seconds to 0.X second.
Is there any factor that will affect this performance? The position of data? The data is evicted?
The text was updated successfully, but these errors were encountered:
I allocate 3G memory for cache. The size of cached data is about 10m terms and the cache memory is almost full.
When I use
cache.Get()
, I found sometimes it will cost much time in getting some items.The flame graph shows
cache.Get()
spent a lot of time inlookup()
andentryPtrIdx()
However, after I restart the server and rebuild the cache with the same data(maybe not in the same order), the performance issue disappears. The CPU time of the whole process decreases from more than 10 seconds to 0.X second.
Is there any factor that will affect this performance? The position of data? The data is evicted?
The text was updated successfully, but these errors were encountered: