-
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
![1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports picture](/store/img/g/fxsAAOSwZD5l6PSG/s-l225/1U-BareMetal-pfsense-opnsense-Router-Firewall-DNS-.jpg)
1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports
$149.00
![1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 240GB SSD 2x 10GBE picture](/store/img/g/7KoAAOSwephiKTf4/s-l225/1U-Supermicro-Server-10-Bay-2x-Intel-Xeon-3-3Ghz-8.jpg)
1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 240GB SSD 2x 10GBE
$259.00
![Supermicro 1U Server X9SRI-F Xeon E5-2640 v2 2.5Ghz 16-Cores / 64GB / No HDD picture](/store/img/g/aYkAAOSwLGpmYf9P/s-l225/Supermicro-1U-Server-X9SRI-F-Xeon-E5-2640-v2-2-5Gh.jpg)
Supermicro 1U Server X9SRI-F Xeon E5-2640 v2 2.5Ghz 16-Cores / 64GB / No HDD
$149.99
![Super micro Server picture](/store/img/g/PNgAAOSweU1mSkvR/s-l225/Super-micro-Server.jpg)
Super micro Server
$168.00
![HPE ProLiant MicroServer Gen10 picture](/store/img/g/tb4AAOSwpRxmfLpK/s-l225/HPE-ProLiant-MicroServer-Gen10.jpg)
HPE ProLiant MicroServer Gen10
$420.00
![Supermicro Server 505-2 Intel 2.4GHz 16GB SYS-5018A-FTN4 - pfSense Compatible picture](/store/img/g/JDMAAOSwC91mR849/s-l225/Supermicro-Server-505-2-Intel-2-4GHz-16GB-SYS-5018.jpg)
Supermicro Server 505-2 Intel 2.4GHz 16GB SYS-5018A-FTN4 - pfSense Compatible
$220.48
![HP ProLiant MicroServer Generation 8 Xeon 4gb 4-BAY 2x500GB HDD (included) picture](/store/img/g/bzsAAOSwEYxmf3N2/s-l225/HP-ProLiant-MicroServer-Generation-8-Xeon-4gb-4-BA.jpg)
HP ProLiant MicroServer Generation 8 Xeon 4gb 4-BAY 2x500GB HDD (included)
$200.00
![HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon picture](/store/img/g/eHkAAOSwVbBmJhq0/s-l225/HPE-ProLiant-MicroServer-Gen10-Plus-v2-Ultra-Micro.jpg)
HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon
$846.48
![2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL picture](/store/img/g/qa4AAOSwMxNk76rN/s-l225/2U-12-Bay-SAS3-SuperMicro-Server-6028U-TR4T-W-X10D.jpg)
2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL
$299.00
![Supermicro 2U Server 12 Caddy Bay 3.5 LFF E ATX Storage Chassis SAS2 6GBPS Rail picture](/store/img/g/1ksAAOSwuqhhuPcE/s-l225/Supermicro-2U-Server-12-Caddy-Bay-3-5-LFF-E-ATX-St.jpg)
Supermicro 2U Server 12 Caddy Bay 3.5 LFF E ATX Storage Chassis SAS2 6GBPS Rail
$199.00