Closed maniackcrudelis closed 5 years ago
For what I can read, it's no more a problem to swap on a "recent" SSD, but we can still avoid swapping on SSD, or put the swapinnes close to 0 if it's a flash drive?
Unless we find a way to detect that it's a SD card, not a SSD.
Ok, let's say so then. Now, this should be implemented.
For info
According to https://www.kernel.org/doc/Documentation/block/queue-sysfs.txt,
/sys/block/sda/queue/rotational
gives 1 for a hard drive, 0 for a flash drive.findmnt / --nofsroot --uniq --output source --noheadings --first-only
gives the partition on which the system is installed.lsblk /dev/mmcblk0p2 --output PKNAME --noheadings
gives the drives above the partition.Still, we do not separate SSD drive and SD card. Should we ?