- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Block / Cluster calculations
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
тАО06-20-2005 02:24 AM
тАО06-20-2005 02:24 AM
I have 5 test files, size: 1,2,2,3,5
Pure: 13 blocks (1+2+2+3+5)
DKC100: 90 blocks -- 5 * 18 (1 cluster)
DKE100: 100 blocks -- 5 * 20 (2.5 clusters?)
Why do these files take up more space on a disk with a smaller cluster size? Also, I thought a file had to occupy a full cluster.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2005 02:35 AM
тАО06-20-2005 02:35 AM
Re: Block / Cluster calculations
If space is that critical, maybe you should upgrade to a VMS version that allows more than 1,000,000 clusters on a disk?
Oh wait... you have that already. Never mind.
It's just a matter of math.
8 can only be divided by 2 and 4.
18 can be divided evenly by 2,3,6 and 9.
I'm afraid I did not fully understand the description of the sizes you gave, but one has to assume that the 18 block cluster allows a few more files to fit 'closer'.
I would suggest you try a cluster size of 6 next.
Hint: for hands-on experiment with this consider virtual devices like the LD (logical disk) and notably the MD memory disk driver.
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2005 02:48 AM
тАО06-20-2005 02:48 AM
Re: Block / Cluster calculations
This appears to be true on DKC100, since each of the small files, with real sizes of:
1 block, 2 blocks, 2 blocks, 3 blocks & 5 blocks, each allocate a full cluster of 18 blocks resulting in 90 blocks of storage being used.
However, when I copy these to DKE100, with a cluster size of 8, each file allocates 2.5 clusters, or 20 blocks each using up a total of 100 blocks of storage. Since each file is smaller than the defined cluster size, I would expect it to allocate only 1 cluster each for a total storage of 40 blocks. Also, I did not think that a file could allocate anything less than a full cluster.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2005 02:48 AM
тАО06-20-2005 02:48 AM
Re: Block / Cluster calculations
the allocated file size (DIR/SIZ=ALLOC)always is a multiple of the cluster size, the used file size (DIR/SIZE=USED - this is the default for DIR/SIZE) can be between 0 and allocated size.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2005 03:01 AM
тАО06-20-2005 03:01 AM
Re: Block / Cluster calculations
is the cluster size really 8 ???
$ WRITE SYS$OUTPUT F$GETDVI("DKE100","CLUSTER")
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2005 03:03 AM
тАО06-20-2005 03:03 AM
SolutionRight. (allthough 0 clusters is also allowed :-)
>> However, when I copy these to DKE100, with a cluster size of 8,
Ah... copy will round up file allocation as it can not be sure the the EOF is meaningfull. Depends on high-water-marking and such. Application are allowed to put data beyond the 'official' EOF. It would be silly, but it is possible. Copy has to play it safe and copy all. Su each file which needed 1 18 block clusters now will need 3 - 8-block clusters.
That's why I suggested 6 block clusters, as they divide nicely into 18.
>> each file allocates 2.5 clusters
As you suspect, this is wrong. Only whole clusters can be allocated. TO understand how and where, I would recommend using DUMP/HEAD/BLOC=COUN=0 for each of the 5 files and look for the MAPPING POINTERS to get the explanation.
There are more details on the round up / truncate / copy vs backup that I have written about before. I can dig that up if critcally needed.
It comes back to the old 'What problem are you really trying to solve'?
If that problem includes copying from a 18-bluc cluster disk to 8, then we have a problem which you can workaround with clustersize 6.
If the real application will simply create the new files on the new disk, then there is no problem. You'll see 8-blocks / file for every file of 8 or less.
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2005 03:04 AM
тАО06-20-2005 03:04 AM
Re: Block / Cluster calculations
If you make your clustersize smaller you need a lager index file and you must calculte de max file for the device by hand.
the hel-p of vms tells you ervery thing about init ( $help init) The easiest way to learn/test this is to use a spare disk and look wath's happening.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2005 03:06 AM
тАО06-20-2005 03:06 AM
Re: Block / Cluster calculations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2005 03:13 AM
тАО06-20-2005 03:13 AM
Re: Block / Cluster calculations
on my 7.3-1 system I do not see such behaviour. If I copy from big-cluster-sized to smaller-cluster-sized disk, it allocates only the cluster-size.
BUT: copy using backup takes the source allocation (and rounds up to multiple of cluster-size), exactly what You probably see on Your disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2005 04:25 AM
тАО06-20-2005 04:25 AM
Re: Block / Cluster calculations
Often space allocation will have a "sweet spot" (or an egregiously bad spot) for a population of files.
Consider the following file sizes:
Space Used (by cluster size)
File Size 3 6 9 12 15
1 3 6 9 12 15
10 12 12 18 24 15
20 21 24 27 24 30
40 42 42 45 48 45
This is referred to as "breakage", since, as you noted, it is not possible to allocate "half a cluster".
Out of curiosity, what are these files? Sequential, Indexed, etc.?
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2005 04:39 AM
тАО06-20-2005 04:39 AM
Re: Block / Cluster calculations
First, I ASSUME those are sequential files, for indexed or RA files the following does not apply (the reason will be obvious after you read the rest).
Anytime you move a file to a disk with a different clustersize, the _allocated_ size is rounded _UP_ to the lowest multiple of the clustersize of the receiving disk, UNLESS
tou tell the system this is a special case.
If you use BACKUP for copying, directly or via tape, then the /TRUNCATE qualifier will allocate just enough to fit the USED part of sequential files.
You did already do the copy (or was that just a test?). In that case.
$ SET FILE /TRUNC will have the same result.
hth
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2005 11:07 AM
тАО06-20-2005 11:07 AM
Re: Block / Cluster calculations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2005 11:12 AM
тАО06-20-2005 11:12 AM
Re: Block / Cluster calculations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2005 10:58 PM
тАО06-20-2005 10:58 PM
Re: Block / Cluster calculations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2005 08:19 AM
тАО06-21-2005 08:19 AM
Re: Block / Cluster calculations
Is the space saved worth it?
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2005 09:35 PM
тАО06-21-2005 09:35 PM
Re: Block / Cluster calculations
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2005 09:50 PM
тАО06-21-2005 09:50 PM
Re: Block / Cluster calculations
A small clustersize may indeed mean a bigger indexf.sys (including bitmap) but that will be less than the win you could have. Nor do you have to calculate the number of files. Use the default unless you _know_ there will be more.Ok, you may run out of slots in indexf.sys, and rebuild the disk. This is a risk you have to calculate as well.
The bottom line is "planning": know what's going to be on that disk.
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2005 03:25 AM
тАО06-22-2005 03:25 AM