- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Is the ls command output cached? Any docs to verif...
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
Forums
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
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
тАО10-29-2004 09:09 AM
тАО10-29-2004 09:09 AM
Is the ls command output cached? Any docs to verify?
I'm almost certain that the output of the ls command is cached but I haven't found any documentation to verify my claim. (I can see the same situation with find... the first time you run find it chugs through the files on the disk and if I repeat the find command immediately I get an instant result.)
Can anyone point me to the documentation that explains this and verifies my claim? My users (are starting to) think I'm crazy! Ha!
Thanks!
Jason
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2004 09:20 AM
тАО10-29-2004 09:20 AM
Re: Is the ls command output cached? Any docs to verify?
copy files
timex ls
This certainly is not a full proof methos, but looks like will give some idea. The second iteration of ls will take less than first one.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2004 09:38 AM
тАО10-29-2004 09:38 AM
Re: Is the ls command output cached? Any docs to verify?
I've never seen that kind of behavior on an HP-9000 server doing tests similar to that.
I could make it happen only by running the copy command in the background. Then i would not see results until the command was done executing.
Now if your end user is using a MICROSOFT opererating system, those are known to do things like that. Also if the change has occured after a CIFS user already has a folder on Unix open, they would have to refresh or they'd see old results. If the copy had happened prior to refresh and say filea was gone and they tried to access it, access should fail.
I can't find documentation, I can only provide experience and say I've run similar tests to the first response to your thread, those few times I thought what you say is happening was happening.
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
тАО10-29-2004 09:45 AM
тАО10-29-2004 09:45 AM
Re: Is the ls command output cached? Any docs to verify?
What options are used to mount it??
Are users doing ls on same machine, or ono nfs point?? Details please.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2004 09:45 AM
тАО10-29-2004 09:45 AM
Re: Is the ls command output cached? Any docs to verify?
Your find example is rather bogus as well. The second "quick" run of find is the result of UNIX buffer caching. After the first run, if the command is quickly repeated there is an extremely high probability that many (most) of the disk blocks are still in the buffer cache so that only a few (possibly zero) disk accesses are required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2004 09:53 AM
тАО10-29-2004 09:53 AM
Re: Is the ls command output cached? Any docs to verify?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2004 11:33 PM
тАО10-29-2004 11:33 PM
Re: Is the ls command output cached? Any docs to verify?
HP-UX 11.00
vxfs
Using automounter, but files are all local to the box in this example. (Ie, /opt/proggy mounts /export/opt/proggy.)
Doing copy to /opt/proggy/XYZ and ls in the same place.
Thanks!
Jason