HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Using 2k block size instead of 8k?
Operating System - HP-UX
1828802
Members
2678
Online
109985
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
06-09-2009 03:26 AM
06-09-2009 03:26 AM
Using 2k block size instead of 8k?
We're changing our database block sizes to improve performance on RAC. And are using a 2k block size instead of 8k. However, I have read that for some volume managers (not sure about veritas) the operating system block size is set to 8k by default. Is this the same with VxVM?
This is the blurb on block sizes:
Oracle recommends that your database block size match, or be multiples of your operating system block size. One can use smaller block sizes, but the performance cost is significant. Your choice should depend on the type of application you are running. If you have many small transactions as with OLTP, use a smaller block size. With fewer but larger transactions, as with a DSS application, use a larger block size. If you are using a volume manager, consider your "operating system block size" to be 8K. This is because volume manager products use 8K blocks (and this is not configurable).
Does anyone have any docs or advise on whether we can reduce VXVM to 2k blocks, or if it cant do we know of any problems/perf prob on VXVM writing 8k blocks, when RAC is sending 2k??
This is the blurb on block sizes:
Oracle recommends that your database block size match, or be multiples of your operating system block size. One can use smaller block sizes, but the performance cost is significant. Your choice should depend on the type of application you are running. If you have many small transactions as with OLTP, use a smaller block size. With fewer but larger transactions, as with a DSS application, use a larger block size. If you are using a volume manager, consider your "operating system block size" to be 8K. This is because volume manager products use 8K blocks (and this is not configurable).
Does anyone have any docs or advise on whether we can reduce VXVM to 2k blocks, or if it cant do we know of any problems/perf prob on VXVM writing 8k blocks, when RAC is sending 2k??
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2009 04:21 PM
06-09-2009 04:21 PM
Re: Using 2k block size instead of 8k?
The "blocksize" is virtually useless as a setting for today's systems. The kernel will coalesce I/O requests into much larger blocks to reduce the overhead and improve performance. 20 years ago with very old filesystems, the block size made a difference. Today, you won't be able to measure any differences except on a very slow computer (less than 100 MHz). Simple logic says that a small block will create a lot more overhead just from 4x more I/O for the same amount of data.
Bill Hassell, sysadmin
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2009 04:57 PM
06-09-2009 04:57 PM
Re: Using 2k block size instead of 8k?
YOu might want to review the OS parameters in the vxtunefs command and the tunefstab file that you can configure. Depending on whether this is 11.11 or 11.23 or 11.31 will determine what parameters the filesystem uses for block sizes and read ahead and write behind and how buffer cache handles buffering blocks of files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2009 11:22 PM
06-09-2009 11:22 PM
Re: Using 2k block size instead of 8k?
I make no claims to be anything remotely resembling an Oracle or VxVM expert, but my experience with similar issues makes me believe that it would be difficult to give you a terribly helpful answer without knowing a lot more about your specific environment and needs.
This seems like a simple question with a more complicated answer. I can think of many overlapping variables that could affect the performance. Some depend on hardware, some on software, some on workload, some on physical motion. Another consideration is how much you might be willing to trade off increased CPU/memory usage for better overall throughput.
Factors such as how common database writes are relative to database reads and how your database is organized on physical media might also influence some of these decisions.
Caching at various levels of hardware and software can further complicate the evaluation. Modern disk drives and controllers do a lot more of this than they used to, sometimes to the detriment of performance. Controllers/drives typically have no concept of the meaning of the bits they shovel, so what's a big optimization for one type of use can seriously hurt peformance for another use.
Taking the factors above in consideration separately, it's often not too hard to make a reasonable guess about what might be best. But the interactions between them can be surprising, even to experts. Sometimes a little actual benchmarking under real-world conditions can be a lot more illuminating than a lot of theoretical analysis.
This seems like a simple question with a more complicated answer. I can think of many overlapping variables that could affect the performance. Some depend on hardware, some on software, some on workload, some on physical motion. Another consideration is how much you might be willing to trade off increased CPU/memory usage for better overall throughput.
Factors such as how common database writes are relative to database reads and how your database is organized on physical media might also influence some of these decisions.
Caching at various levels of hardware and software can further complicate the evaluation. Modern disk drives and controllers do a lot more of this than they used to, sometimes to the detriment of performance. Controllers/drives typically have no concept of the meaning of the bits they shovel, so what's a big optimization for one type of use can seriously hurt peformance for another use.
Taking the factors above in consideration separately, it's often not too hard to make a reasonable guess about what might be best. But the interactions between them can be surprising, even to experts. Sometimes a little actual benchmarking under real-world conditions can be a lot more illuminating than a lot of theoretical analysis.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP