-
Adjusting block device readahead
I got a new external crucial X8 usb 3.0 ssd and it reports a very large blocksize.
Unfortunately, it seems to make playing videos over the network with samba have problems. It may also be suboptimal using it on a usb 2.0 port.
blockdev --report
shows most drives have 256 sector readahead
RO RA SSZ BSZ StartSec Size Device
ro 256 512 1024 0 205111296 /dev/loop0
ro 256 512 1024 0 204873728 /dev/loop1
ro 256 512 1024 0 4096 /dev/loop2
ro 256 512 1024 0 157855744 /dev/loop3
however, my crucial ssd gets a giant 131072 readahead value. I believe this is what's causing the problems with the network drive sharing.
sudo blockdev --setra 16384 /dev/sdb
sets it to a much better value and I don't see the audio dropouts.
You can also check the value by getting the readahead for a specific drive.
blockdev --getra /dev/sdb
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Gigabyte B560 DS3H AC Intel LGA 1200 DDR4 ATX Motherboard
$69.95

Gigabyte B560 DS3H AC IntelB560 LGA 1200 ATX Desktop Motherboard B
$59.99

MSI H110M ECO Motherboard LGA1151 DDR4 DVI+HDMI Mainboard With I/O Shield
$39.99

GIGABYTE GA-AB350M-D3H Motherboard Socket AM4 DDR4 +AMD Athlon 200GE@3.2GHz
$69.99

MSI Z270 SLI Socket 1151 Z270 DDR4 Motherboard #2383
$60.00

(Factory Refurbished) GIGABYTE B660 DS3H AC DDR4 INTEL LGA 1700 ATX MOTHERBOARD
$79.99

(Factory Refurbished) MSI MPG B550 GAMING PLUS AM4 M.2 SATA AMD ATX Motherboard
$99.99

GIGABYTE B550 UD AC ATX Motherboard AMD Socket AM4 DDR4 HDMI WIFI USB 3.2 SATA
$74.99

Gigabyte M-ATX motherboard with Intel Core i3 8100 CPU and 8GB DDR4 RAM
$79.00

Gigabyte M-ATX motherboard with Intel Core i3 9100 CPU and 8GB DDR4 RAM -Working
$94.00