Saturday, 15 February 2014

memory - How can I write code to purposefully eat up RAM and CPU resources? -


I have written code in Ruby and C before I have completed similar purposes, but I think that My situation is a bit complicated now. As I said, I intend to write code that relates to resources on a machine, and there is a need to measure where and when these incidents occur.

Is there a library / module that does this, and if not, what would be the best way to accomplish this? Should I flood the processor with a large number and should try to find it priorities? Should I have to wait several minutes to shoot multiple packets in one of the machines until it crashes?

I have to write the code to complete various tasks related to this in the last two days, but I am dissatisfied with it because even when I have completed my work, I can not find any real data. Any suggestions, where, why, and when these incidents are happening, would be greatly appreciated.

Please consider using the stress utility in Linux. I'm assuming this is a Linux system. Either way, "stress" allows you to target the subsystem of your choice and load accordingly.


No comments:

Post a Comment