Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect used_chunks in stats slabs #29

Closed
GoogleCodeExporter opened this issue Nov 5, 2015 · 4 comments
Closed

Incorrect used_chunks in stats slabs #29

GoogleCodeExporter opened this issue Nov 5, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

From colin.pitrat@gmail.com         

Still playing with slabs allocation, I found another strange result.
Storing only one small value in memcached, I end up with this output
for stats slabs:

STAT 1:chunk_size 104
STAT 1:chunks_per_page 10082
STAT 1:total_pages 1
STAT 1:total_chunks 10082
STAT 1:used_chunks 10082
STAT 1:free_chunks 0
STAT 1:free_chunks_end 10081
STAT active_slabs 1
STAT total_malloced 1048528

It is strange that whereas I store only one value, used_chunks report
10082. However, after deleting the value, free_chunks increase to 1,
and used_chunks decrease to 10081. Why are chunks in free_chunks_end
also considered as used_chunks ?


Original issue reported on code.google.com by dsalli...@gmail.com on 17 Mar 2009 at 9:49

@GoogleCodeExporter
Copy link
Author

I've got some code for this up here.  Please review -- particularly the test.  
Is it
comprehensive enough?

http://github.com/dustin/memcached/tree/issue_29

Original comment by dsalli...@gmail.com on 17 Mar 2009 at 10:10

@GoogleCodeExporter
Copy link
Author

Original comment by dsalli...@gmail.com on 18 Mar 2009 at 7:17

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

I went ahead and did this since I got no feedback and it seems to make more 
sense.

Original comment by dsalli...@gmail.com on 24 Mar 2009 at 4:42

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

http://github.com/dustin/memcached/commit/2b40d72c04e523d44d46d44e62d416bcf9216c
8e

Original comment by dsalli...@gmail.com on 24 Mar 2009 at 4:44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant