hoytech / vmtouch

Portable file system cache diagnostics and control
https://hoytech.com/vmtouch/
BSD 3-Clause "New" or "Revised" License
1.79k stars 210 forks source link

Limit the maximum size that can be touched for 1 second. #72

Open panda005 opened 5 years ago

panda005 commented 5 years ago

Sometimes touching too much can bring system trouble. So I propose a function. This function limit the maximum touch size for 1 second with (-s).

hoytech commented 5 years ago

Interesting idea, thanks for the suggestion and pull-request. It's basically a rate-limit on how much memory should be touched per second right? I'll try to give the code a review soon, cheers!