Skip to main content

Timeline for How to fill 90% of the free memory?

Current License: CC BY-SA 3.0

9 events
when toggle format what by license comment
Jul 25, 2020 at 0:21 comment added phil294 note to self: dont yes > /dev/shm/asdf, as it will crash your system (even with swapping enabled)
Jun 11, 2020 at 12:04 history edited CommunityBot
Commonmark migration
Dec 8, 2017 at 19:25 comment added develCuy If you want speed, this method is the right choice! Because it allocates the desired amount of RAM in a matter of seconds. Don't relay on /dev/urandom, it will use 100% of CPU and take several minutes if your RAM is big. YET, /dev/shm has a relative size in modern Ubuntu/Debian distros, it has a size that defaults to 50% of physical RAM. Hopefully you can remount /dev/shm or maybe create a new mount point. Just make sure it has the actual size you want to allocate.
Sep 26, 2017 at 20:01 comment added Otheus If pv is installed, it helps to see the count: dd if=/dev/zero bs=1024 |pv -b -B 1024 | dd of=/dev/shm/fill bs=1024
S Nov 8, 2013 at 12:57 history suggested Eduard Florinescu CC BY-SA 3.0
Added the swapoff -a to prevent swaping the file
Nov 8, 2013 at 12:41 review Suggested edits
S Nov 8, 2013 at 12:57
Nov 8, 2013 at 12:24 comment added Tadeusz A. Kadłubowski Not all *nixes have /dev/shm. Any more portable idea?
Nov 8, 2013 at 12:20 review First posts
Nov 8, 2013 at 12:27
Nov 8, 2013 at 12:00 history answered damio CC BY-SA 3.0