suaefar / ryzen-test

Tools to reproduce randomly crashing processes under load on AMD Ryzen processors on Linux
GNU General Public License v3.0
224 stars 59 forks source link

Could we get a script for cleaning up afterwards? (or at least instructions) #7

Closed dralley closed 7 years ago

dralley commented 7 years ago

For instance, getting rid of the ramdisk, freeing up the disk space, etc.

dralley commented 7 years ago

Thanks for the project, unfortunately my CPU is affected : /

BuzzBumbleBee commented 7 years ago

If you run in ramdisk mode the following should be all that's needed

  1. Kill all processes started by the script (ps aux can help here)

  2. Unmount and rmmod the zram module

    sudo umount /mnt/ramdisk
    sudo rmmod zram
suaefar commented 7 years ago

Just reboot and the ramdisk with all its contents will disappear. Nothing should be written outside the ramdisk apart from installing the build-essential package. You can remove it with "sudo apt purge build-essential".

Nuc1eoN commented 6 years ago

Just reboot and the ramdisk with all its contents will disappear.

How do I reboot the RAM disk?

Oxalin commented 6 years ago

@Nuc1eoN: He means to reboot your system. The RAM and its content (including the RAMdisk) will be cleared.

m-r-s commented 6 years ago

That's right! Just power down or reboot your system.

Nuc1eoN commented 6 years ago

Yeah but I'm testing on a live CD, so rebooting takes a long time. Is there no faster way? I get some error message about the ram disk when trying to run a second time.

Oxalin commented 6 years ago

@Nuc1eoN : I had (have) a patch for that in a fork. However, my branch uses GCC 7.2.0 instead of 7.1.0, because 7.1.0 is broken against many newer Linux distributions that are using glib 2.26 or newer. You could use my branch, but change GCC's version back to 7.1.0. You can find the code here: https://github.com/Oxalin/ryzen-test/commits/master

Nuc1eoN commented 6 years ago

@Oxalin thanks great work! :) My main system is a fully updated Archlinux. Will your script work there without issues? The only reason I've downloaded that Ubuntu crap was to test out the ryzen bug.

Oxalin commented 6 years ago

@Nuc1eoN : last I checked, it was working fine. That's how I tested my faulty CPU a few months ago. If you encounter a problem, let me know under my fork.