Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Here's my last one (find half of the free memory to feed into a stress testing tool):

stress --vm-bytes $(awk '/MemFree/{printf "%d\n", $2 * 0.5;}' < /proc/meminfo)k --vm-keep -m 1

It's like playing terminal history awk roulette :)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: