-
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

4 IN1 USB3.0 Flash Drive Memory Photo Stick For iPhone Android iPad Type C OTG
$18.58

USB3.0 Flash Drive 2TB 1TB 4in1 Memory Photo Stick OTG Type-c For iPhone Samsung
$17.98

SanDisk 256GB 512GB 1TB 2TB Ultra Dual Drive Go USB 3.2 & Type-C USB Flash Drive
$89.99

2TB USB Flash Drive Photo Thumb Stick Memory External Storage For iPhone iPad PC
$18.99

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack
$399.99

ZIPPY USB Flash Drive Memory Stick Pendrive Thumb Drive 4GB, 8GB, 32GB, 64GB LOT
$224.99

Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop 1TB 2TB lot
$703.19

SanDisk Flash Drive Ultra Dual Go USB Type-A & Type-C 32G 64GB 128GB 256GB lot
$278.90

256 GB Flash Drive for iPhone USB Memory Stick Thumb Drives High Speed USB Stick
$13.99

2TB 4in1 Portable Flash Drive USB3.0 Memory Stick OTG for iPhone Android PC Mac
$19.88