Originally posted by oshunluvr
View Post
achilleus@Linux:~$ for d in sda sdd nvme1n1 ; do sudo hdparm -t /dev/$d ; done [sudo] hasło użytkownika achilleus: /dev/sda: Timing buffered disk reads: 364 MB in 3.01 seconds = 120.87 MB/sec /dev/sdd: No such file or directory /dev/nvme1n1: HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device Timing buffered disk reads: 5438 MB in 3.00 seconds = 1812.23 MB/sec
$ cat /sys/block/nvme0n1/queue/scheduler [none]
$ cat /sys/block/sda/queue/scheduler noop deadline [cfq]
/etc/udev/rules.d/60-ioschedulers.rules
# set scheduler for NVMe
ACTION=="add|change", KERNEL=="nvme[0-9]*", ATTR{queue/scheduler}="none"
# set scheduler for SSD and eMMC
ACTION=="add|change", KERNEL=="sd[a-z]|mmcblk[0-9]*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="mq-deadline"
# set scheduler for rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq"
achilleus@Linux:~$ cat /sys/block/sda/queue/scheduler [mq-deadline] none
To reduce writing to the SSD, we will be using tmpfs (i.e. RAM-disk) to store the system cache and temp directory. You can use the same for logs /var/log, however, I like to keep my logs between reboots so I will use the regular disk for that. Add the following lines to the /etc/fstab. tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0 tmpfs /var/spool tmpfs defaults,noatime,mode=1777 0 0 tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0
achilleus@Linux:~$ lsblk --discard NAME DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO sda 0 0B 0B 0 ├─sda1 0 0B 0B 0 └─sda2 0 0B 0B 0 nvme0n1 0 512B 2T 0 ├─nvme0n1p1 0 512B 2T 0 ├─nvme0n1p2 0 512B 2T 0 ├─nvme0n1p3 0 512B 2T 0 └─nvme0n1p4 0 512B 2T 0 nvme1n1 0 512B 2T 0 └─nvme1n1p1 0 512B 2T 0
There are 0 users viewing this topic.
Leave a comment: