-
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

AMD Ryzen 5 5500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor
$106.86

Intel Core i7-14700K Unlocked Desktop Processor - Up to 5.6 GHz max clock speed
$364.99

Intel Core i7-12700KF Unlocked Desktop Processor - 12 Cores And 20 Threads
$219.99

Intel Core i9-14900KF Unlocked Desktop Processor
$439.00

Intel Core i5-10500 SHR3A 3.1GHz 12MB 6-Core LGA1200 CPU Desktop Processor
$87.95

AMD RYZEN 5 PRO 2400GE 3.20GHz AM4 CPU Processor
$29.99

Intel Core i5-14600K Unlocked Desktop Processor
$229.99

Intel Core i5-14600 Processor 5.2 GHz OEM Tray CPU SRN44 CM8071504821018
$169.00

Intel Core i7-4790K 4.00GHz 8MB Quad-Core LGA 1150/Socket H3 CPU Processor SR219
$67.99

AMD Ryzen 5 5600 Processor (3.5 GHz, 6 Cores, Socket AM4) NEW
$93.46