- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cp filename /dev/null spins root disk
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
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
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
04-25-2002 08:28 AM
04-25-2002 08:28 AM
cp filename /dev/null spins root disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 08:30 AM
04-25-2002 08:30 AM
Re: cp filename /dev/null spins root disk
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 08:37 AM
04-25-2002 08:37 AM
Re: cp filename /dev/null spins root disk
How big is the file?.
If it is large and on the root disk, sure it will cause root disk to spin as it has to read from it.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 08:38 AM
04-25-2002 08:38 AM
Re: cp filename /dev/null spins root disk
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 08:43 AM
04-25-2002 08:43 AM
Re: cp filename /dev/null spins root disk
Depending on the location of "filename" you may be reading it from the root disk.
But regardless the system is actually writing it to /dev/null - on the root disk - which obediently sends it to the "ether" never to be seen again. You'd see the same thing if you copied it to a device file such as /dev/console.
Remember HP-UX is a "file-based" OS & treats EVERYTHING as a file & this includes devices such as null.
Sun is probably interpreting the command differently & noting that copying to /dev/null is "pointless" and doing nothing.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 10:03 AM
04-25-2002 10:03 AM
Re: cp filename /dev/null spins root disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 10:39 AM
04-25-2002 10:39 AM
Re: cp filename /dev/null spins root disk
As has been mentioned, I suspect that your /dev/null has somehow become a regular file rather than a device node. Do an ls -l /dev/null. It should be a character special device with major device number 3, minor 2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 10:39 AM
04-25-2002 10:39 AM
Re: cp filename /dev/null spins root disk
My grandfather, may he rest in peace, always told me
"You can't fix stupid."
My question in response to them would be Benchmark exactly what?
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 10:47 AM
04-25-2002 10:47 AM
Re: cp filename /dev/null spins root disk
In response to the benchmark what? question, the client states that they are measuring between solaris and hpux a cp filename to /dev/null and in Solaris the disks do not spin up in looking at a sar -d and the command executes with time immediately with a prompt # that followes with 0.0s. In HPUX and I checked many HPUX servers in our environment, when I do it here no matter if it is a root disk or a disk sitting on a Frame, the root disk spins up to 100% in sar until the time cp filename /dev/null completes which is anywhere in the 45s range on a 1gb file. In Solaris, I have tested this with a 6gb file and yet no disk activity and the command executes with time at 0.0. I just want to know why their are differences in OS's. I agree this is not a valid benchmark test and I think the client is NUTS but I still for my own sanity like to answer this question and throw it in their face.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 11:36 AM
04-25-2002 11:36 AM
Re: cp filename /dev/null spins root disk
I don't get the same response that you are describing. The disk the spins up to 100% is the disk which contains the source file. Of course, this is all 100% read IO. There is little if any IO to the root disk. Even if I use the time command, there is still no root disk IO. It does however, take time to read the file.
I've tried it on 11.0 and 11i and used glance to watch the disk IO (the 'u' screen). Something else it going on here. Have you another machine to time it on?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 12:14 PM
04-25-2002 12:14 PM
Re: cp filename /dev/null spins root disk
# time cp /stand/vmunix.prev /dev/null
real 0.8
user 0.0
sys 0.1
(N4000 w/2 CPU @ 360MHz, 1GB RAM, normal disk systems, HP-UX 11.0)
Copying a 600MB file from external RAID to /dev/null produced:
# time cp bigfile /dev/null
real 14.2
user 0.0
sys 2.6
Hope you can solve this
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 12:21 PM
04-25-2002 12:21 PM