Linux环境中的实用程序`memhog`的详细信息?

前端之家收集整理的这篇文章主要介绍了Linux环境中的实用程序`memhog`的详细信息?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在研究运行Amazon内核的EC2实例上的内存使用情况,并在实用程序/usr/bin/memhog中运行,但它没有联机帮助页.在盲目奔跑之前,我想知道它的作用以及它是如何使用它的.

任何人都使用它并知道它的作用?

解决方法

在你提到它之前我从来没有听说过它.然而,在关于实用程序的 SCO Unix,My system is slow (Old Sco Unix)上的一篇文章中,它听起来并不适合你想要做的事情.

Linux systems have “memhog” if numactl is installed. Numactl can
assign specific a process to a specific cpu and control memory policy
in other ways. The “memhog” does something very simple: it eats up
memory and then releases it. Why would you ever do that?

Well,possibly to test how another app performs when starved for
memory or to push unused memory in other apps out to swap (that can
help you see what’s really available should you need it).

显然,您为该实用程序提供了一个参数,指定您希望它采取多少内存,例如: memhog 512m – 见Issue 19: crash with repeated cycles of memhog (x86 and x64)

也许5 commands to check memory usage on Linux中提到的其中一个实用程序更适合您的目的.

原文链接:https://www.f2er.com/linux/398314.html

猜你在找的Linux相关文章