HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Logical vs. Physical reads?
Operating System - HP-UX
1836585
Members
2647
Online
110102
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
01-22-2008 05:00 AM
01-22-2008 05:00 AM
Logical vs. Physical reads?
I have a couple of questions about performance stats...
Until now I was under the impression that every time a process issues a read() call (or one of it's cousins readv & pread), that would count as a Logical read in Glance and MeasureWare. If the request could not be satisfied from buffer cache and had to retrieved from disk, then it would count as a physical read, as well.
First of all, is the above statement correct?
According to what I'm seeing now, it's not. I have been given an app which opens several files and does random preads() from each of the files, always in 8K blocks.
I've been looking at the app with Glance, and in the Process Resources screen (R key in Glance) I'm only seeing physical reads. Never any logical reads.
Why is that?
Through a little experimentation I was able to determine that if an 8K block is in buffer cache, the physical read IO doesn't register in glance. In other words, if the app does 10 preads(), and all of them are satisfied from buffer cache, then the Physical reads counter in Glance will not increment. Unfortunately, the Logical reads counter doesn't increment, either.
Is this normal, or is my glance broken?
What exactly are logical reads?
P.S. It goes without saying that good points will be given for good explanations. Many thanks in advance!
Until now I was under the impression that every time a process issues a read() call (or one of it's cousins readv & pread), that would count as a Logical read in Glance and MeasureWare. If the request could not be satisfied from buffer cache and had to retrieved from disk, then it would count as a physical read, as well.
First of all, is the above statement correct?
According to what I'm seeing now, it's not. I have been given an app which opens several files and does random preads() from each of the files, always in 8K blocks.
I've been looking at the app with Glance, and in the Process Resources screen (R key in Glance) I'm only seeing physical reads. Never any logical reads.
Why is that?
Through a little experimentation I was able to determine that if an 8K block is in buffer cache, the physical read IO doesn't register in glance. In other words, if the app does 10 preads(), and all of them are satisfied from buffer cache, then the Physical reads counter in Glance will not increment. Unfortunately, the Logical reads counter doesn't increment, either.
Is this normal, or is my glance broken?
What exactly are logical reads?
P.S. It goes without saying that good points will be given for good explanations. Many thanks in advance!
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2008 05:46 AM
01-22-2008 05:46 AM
Re: Logical vs. Physical reads?
Hi Alex,
I'm quoting from Glance's own help files here:
"Physical I/O
A input/output operation where data is transferred from memory to disk or vice-versa. Physical IO includes file system IO, raw IO, system IO and virtual memory IO.
Logical I/O
A read or write system call to a file system to obtain data. Because of the effects of buffer caching, this operation may not require a physical access to the disk if the buffer is located in the buffer cache."
That, I think, agrees with your (and my) interpretation. Why you're seeing only physical reads I'm not sure.
Pete
Pete
I'm quoting from Glance's own help files here:
"Physical I/O
A input/output operation where data is transferred from memory to disk or vice-versa. Physical IO includes file system IO, raw IO, system IO and virtual memory IO.
Logical I/O
A read or write system call to a file system to obtain data. Because of the effects of buffer caching, this operation may not require a physical access to the disk if the buffer is located in the buffer cache."
That, I think, agrees with your (and my) interpretation. Why you're seeing only physical reads I'm not sure.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2008 05:49 AM
01-22-2008 05:49 AM
Re: Logical vs. Physical reads?
P.S. Perhaps version and patch level info might prove helpful.
Pete
Pete
Pete
Pete
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