-
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
Mac OS X El Capitan 10.11 Bootable USB Flash Drive Installer
$15.49
Mac OS Monterey 12 Bootable USB Flash Drive Installer
$15.49
Mac OS 10-IN-1 Reinstall USB Bootable Flash Drive
$34.99
USB Flash Drive Memory Stick Pendrive Thumb Drive 4GB, 8GB, 32GB, 64GB 128GB LOT
$230.40
Windows 10 installation USB Flash Drive Media (8GB) FAST SHIP
$9.99
Apple mfi certified 3 in1 USB 3.0 Flash Drive Memory Photo Stick for iPhone iPad
$20.00
Sandisk 16GB 32GB 64GB 128GB Cruzer Blade Flash Drive Memory Stick USB Lot Pack
$4.70
NEW USB 3 Flash Drive OTG Photo Stick For iPhone iPad Android Samsung Type-C PC~
$12.69
USB Flash Drive 2TB TO 64TB USB 3.2 Thumb Drive Memory Stick PC Laptop Mobile
$11.99
2TB USB 3.0 Flash Drive Memory Photo Stick for iPhone Android iPad Type C 4 IN1
$10.99