- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- deactivate sparse files
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
05-17-2007 12:52 AM
05-17-2007 12:52 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2007 01:47 AM
05-17-2007 01:47 AM
SolutionPlease clarify. How could the existance of the sparse file affect some of your tablespaces?
Normally for a sparse file (e.g. when you create a temporary tablespace with the tempfile option), the OS really allocate space to the file only when you write to it.
One of the nuances of true temporary files is that if the operating system permits it, the temporary files will be created as sparse. That is, they will not actually consume disk storage until they need to.
To prevent this, some of the options are to use dd to fill the file or use cp to create a non-sparse file.
"sparse file" is considered to be is a unix feature!!
if you need any further clarification, let us know.
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2007 03:17 AM
05-17-2007 03:17 AM
Re: deactivate sparse files
ThX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2007 03:26 AM
05-17-2007 03:26 AM
Re: deactivate sparse files
In any event, you can convert any sparse file to non-sparse by cp'ing it to a temporary file and then mv'ing the temporary file to the original but there is no reason to do this.
The only danger that a sparse file causes is a potential over-commitment of a filesystem. It is possible that a filesystem might contain enough sparse files that should they all be "filled in", the filesystem would run out of room. This is analogous to airline over-booking. Unless you have seen that situation, whatever your DBA's think is the problem, it ain't sparse files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2007 05:03 AM
05-17-2007 05:03 AM
Re: deactivate sparse files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2007 05:04 AM
05-17-2007 05:04 AM
Re: deactivate sparse files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2007 05:24 PM
05-18-2007 05:24 PM
Re: deactivate sparse files
Doesn't the read of the original file fill in the sparse file? Or is the file system smart enough to fill in the buffer with zeroes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2007 08:10 AM
05-19-2007 08:10 AM
Re: deactivate sparse files
No.
Eric,
Care to share that solution for the benefit of future readers?
Not that I believe there to be good enough reasons to want to do this, but just in case.
Mind you, there are several reasons why you might want to do this.
Writing any block for the first time in a sparse file will cause overhead, as the extents must still be allocated by the file. This can be compounded by `smart' IO controllers, like the 'EVA' which also postpone allocating storage segments until a first block is actually written.
That overhead is happen at a time you actually might need the performance. Whereas often the performance of the creation of a new temp space is not at all critical and perhpas done outside main business hours.
Those sparse files can cause unpredictable performance result, which can make benchmark tasks poorly repeatable.
They can also cause excessive fragmentation.
Finally I believe this can cause overcommitment of resources. The sparse file may lead you to believe there are still ample free blocks on the device. You put an other datafile for an other datafile there and then hours or weeks later when more TEMP space is used you suddenly, unexpectedly, and unacceptably, run out of disk space!?
Really, now that I listed all that came to mind, I have to agree with the notion of wanting to disable them! So little to gain, so much to loose?
Hope this helps someone, somewhere, some time,
Hein van den Heuvel (at gmail dot com)
HvdH Performance Consulting