Today's Posts

Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here.

Blockdev vs /sys/block/

filesystem, read ahead, solved

Login to Reply

Thread Tools Search this Thread
# 1  
Old 06-12-2014
Blockdev vs /sys/block/


I want to set/get the read-ahead for my disks and there is a little issue that confuses me. There are three ways to get/set the read-ahead buffer:

1. cat /sys/block/md0/bdi/read_ahead_kb
2. cat /sys/block/md0/queue/read_ahead_kb
3. blockdev --getra /dev/md0

Which one is the correct one? The first two gives me a value of 128. The last one gives me a value of 256. Where does this difference come from?
# 2  
Old 06-12-2014
Well I dont have much linux knowldge, but since you are talking disks, the same philosophy should apply:
First two give you a value of 128 (kb)
The last, blockdev since to talk like ioctl etc... and so is in blocks ( of 512 bytes) 256 block of 512 bytes...
To me then the values are much the same
The Following User Says Thank You to vbe For This Useful Post:
Sergiu-IT (06-12-2014)
# 3  
Old 06-12-2014
Well... it makes sense, now

Thank you for your answer, vbe!
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Interactive Python 3.5+ sys.stdout.write() AND sys.stderr.write() bug? wisecracker Programming 2 03-07-2017 11:24 AM
sys cron not running vivek.goel.piet UNIX for Advanced & Expert Users 5 12-14-2011 06:28 PM
Name file with sys date neil.k Solaris 1 01-21-2011 03:05 PM
SYS CRONJOB just not running... deal732 UNIX for Advanced & Expert Users 6 09-01-2009 09:30 PM
Sys Admin Certification King Nothing Solaris 8 08-07-2009 04:37 AM
Minimum Sys Requirement saurabh84g HP-UX 0 09-21-2008 03:31 AM
question about sys-unconfig deedee Solaris 4 07-24-2007 07:24 PM
Network Sys Admin wes.lat What is on Your Mind? 1 12-26-2006 04:47 PM
Hi errno in sys/stat.h vijlak Programming 6 11-11-2006 09:13 PM
Raid help for new sys admin antalexi Solaris 1 10-26-2006 06:45 AM
Any sys admins from uk? megadeth Solaris 1 12-19-2005 12:03 PM
Differences Sys 5 and BSD RajaRC Solaris 2 07-20-2004 07:11 AM
BSD Sys 5???? Toughgirl27 UNIX for Dummies Questions & Answers 2 08-21-2001 05:16 PM
Sys Administration tovsky Post Here to Contact Site Administrators and Moderators 1 07-15-2001 11:18 AM

All times are GMT -4. The time now is 06:32 AM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
Show Password