- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Improving Disk Read Performance with blocksize=256...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2003 05:03 PM
тАО07-30-2003 05:03 PM
Improving Disk Read Performance with blocksize=256k
I found something really bizarre with my filesystem when I did some dd tests on a one gigabyte file on disk subsystem that was fiber channel attached to my HP rp7400 8-way running HP 11i. The dd read test was 6 times faster with bs of 256k-1 or less than bs of 256k. I re-did the same tests on a local SCSI3 disk , the difference was 1.3 times. Are there any system parameters that I can change to improve the read performance with bs=256k? Any help is appreciated. Thanks.
bigcat:/ 1253# umount /essc1r6
bigcat:/ 1254# mount /dev/ess/c1r6 /essc1r6
bigcat:/ 1255# timex dd if=/essc1r6/1gbfile of=/dev/null bs=262143
4096+1 records in
4096+1 records out
real 10.19
user 0.02
sys 9.65
bigcat:/ 1256# umount /essc1r6
bigcat:/ 1257# mount /dev/ess/c1r6 /essc1r6
bigcat:/ 1258# timex dd if=/essc1r6/1gbfile of=/dev/null bs=262144
4096+0 records in
4096+0 records out
real 1:02.07
user 0.02
sys 5.39
bigcat:/ 1259# df -g /essc1r6 | grep fragment
8192 file system block size 1024 fragment size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2003 05:33 PM
тАО07-30-2003 05:33 PM
Re: Improving Disk Read Performance with blocksize=256k
For reading small files, this is horribly inefficient. It really depends on what kind of work your system does in real life to determine whether this is a good idea.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2003 05:56 PM
тАО07-30-2003 05:56 PM
Re: Improving Disk Read Performance with blocksize=256k
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2003 06:13 PM
тАО07-30-2003 06:13 PM
Re: Improving Disk Read Performance with blocksize=256k
The kernel has a rather complex method to create physical I/O which is a significant topic in advanced HP-UX internals course material. The kernel tries to maximize I/O into 128k chunks when possible (sequential data) but there are a number of non-sequential tasks that can't be optimized. So while dd shows significant improvement with bs=128k or bs=256k, these values are meaningless to a database that reads and write 12kb records randomly scattered throughout the disk.
You'll see significant random access performance by using several disks (more than 2) in striped volumes.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2003 09:55 PM
тАО07-30-2003 09:55 PM
Re: Improving Disk Read Performance with blocksize=256k
Hi,
Some applications require that you have a certain block size. Oracle for example works with 8K block size (For SAP R/3 applications) .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2003 10:12 PM
тАО07-30-2003 10:12 PM
Re: Improving Disk Read Performance with blocksize=256k
Eugeny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2003 02:17 AM
тАО08-01-2003 02:17 AM
Re: Improving Disk Read Performance with blocksize=256k
What kind of storage do you have? If it is a SAN/inteligent array (say VA7410 etc) the data will be cached on the array so the second pass will be quicker.
There is actually a heated debate where I work... we use a 4K stripe & some say that increasing it to 16K or 64k will improve performance and some say it will destroy performance. Doing dd tests will definitely show 64k is better than 4k, but the proof of the pudding is how the application/users respond. If it aint broke dont fix it, because the type of actions needs to optimise your system to 256k would be quite alot.
IF you need more some proof that the disks need tuning then
o look at "sar -d 60 5" results. If the service times are high (all relative, 1-3 excellent, 3-6 good, 6-10 OK, 10+ there may be problems).
o Also look at you average block size or block size per disk. You can do this using MeasureWare & do per disk extracts
extarct -xt -v -d -r
This will create a file called xfrdDISK.asc, & look at the Phys IO/s & Phys kB/s for an idea of the average block size.
We have an average block size of 2.5k, which implies a 4k stripe is about right.
Regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2003 05:43 AM
тАО08-01-2003 05:43 AM
Re: Improving Disk Read Performance with blocksize=256k
If writting async the access time would relfect the time it took the SAN's cache to respond. Real world response would be influenced by the competition for the cache space, more closely related to physical disk i/o