-
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
SanDisk Professional 12TB G-RAID 2 Enterprise-Class 2-Bay Desktop Drive, 7200RPM
$195.00
ORICO 5 Bay Raid USB3.0 to SATA External Hard Drive Enclosure for 3.5'' HDD LOT
$45.55
ORICO 5Bay Raid Hard Drive Enclosure USB3.0 to SATA for 3.5'' HDD SSD 150W Power
$155.99
ORICO 4/5 Bay External Hard Drive Enclosure USB3.0/Type C for 2.5/3.5'' HDD SSD
$129.99
Adaptec - ASR-7805 6Gbs SAS- PCI EXPRESS 3.0 X8 -1GB Cache RAID Controller Card
$24.99
LSI 9271-8i MegaRAID 8-Port 6Gbps PCIe RAID Controller w/ 1Gb CacheVault & BBU
$20.49
SYBA SY-PEX40008 4-port SATA II PCI-Express RAID Card
$9.99
SAS9266-8I LSI MegaRAID SAS 8-Port 6Gb/s 1GB SATA/SAS RAID Controller LSI00295
$14.90
LSI MegaRAID 9364-8i SAS3108 LENOVO 03T6792 12G RAID Controller Card 1GB BATTERY
$59.00
LSI MegaRaid SAS 9380-8E 8-Port 12GB PCIE 3.0 External Raid Controller
$60.00