24 ms·
Why are you "utterly convinced" of that though? If I run 20 threads in Python, unix top reports resident memory usage to me as 14mb. Why do I see that number
by calpaterson 6y ago
Why are you "utterly convinced" of that though? If I run 20 threads in Python, unix top reports resident memory usage to me as 14mb. Why do I see that number instead of 160mb?
Code sample:
https://gist.github.com/calpaterson/ab35377da9275ca3af7072dbd03ec3a6 https://gist.github.com/calpaterson/ab35377da9275ca3af7072db...
- Scarbutt 6y agoYou mean 14MB?
- calpaterson 6y agoHtop shows me "14016" as resident memory and I don't think it is using kilobytes as the unit.
- anonymoushn 6y agoIt is using kilobytes as the unit.
- calpaterson 6y agoYes you're right. What a silly mistake. Normal Python interpreter = 9mb, with 20 threads = 14mb. Edited the original post.
- mlyle 6y agoAnswer to your question was already discussed right here: https://news.ycombinator.com/item?id=24429221 https://news.ycombinator.com/item?id=24429221
- mlyle 6y agoThat's embarrassing.
- calpaterson 6y agoOnly for me as the GP was right. :)
- mlyle 6y agoYah I replied to you. :P