Accordingly a lot of manuals - if you have block size 8KB and trying to write a 1KB file to the block, as result you waste 7KB of the block space. But recently I noticed about Fragments of File Block. In same case if you have File Block 8KB and Fragment size 1KB - you can save your block space, because 1KB file will fill only 1 fragment. Other 7 fragments will use for other files.
It seems like :
If you have large files - use fragment size equal to block size
If you have small files - use minimal fragment size
I want to know the best suggestion (relationship) between "File Block Size" and "Fragment Size".
I noticed that whole my root volume group has :
Block Size = 8K
Fragment Size = 8K
It's default setting. And it's strange because a lot of smallest file present in OS and I can waste more space than if I will use Fragment Size 1K.
Whenever you ask about block size, fragment size, and how blocks are allocated to files; you need to tell us what type of filesystem you're using. Different filesystems use different methods of allocating blocks for files.
I'm certainly not an expert on HP-UX filesystems, but I would suggest that you also specify the HP-UX release you're using to help volunteers here who may be able to help you respond appropriately.
That is the volume manager, but you probably mean VXFS? A fragment size equal to the block size makes sense for (cooked) database applications (especially if it is equal to the database block size) or for other applications where you mainly have large files. With lots of small files you are wasting space and a smaller fragment size would be more likely be the way to go.
Your root VG does not have a block size. Perhaps you mean that every VXFS filesystem in every LV in your root VG has a 8KB fragment size? That would not seem like a logical choice to me..
Last edited by Scrutinizer; 12-25-2014 at 06:51 PM..
That does indeed show a "fragment size" of 8 KB, which is the "fundamental file system block size", i.e. the minimum block size that can be used on a file system..
Quote:
[CODE]
[..]
I think it's somehow related that root VG supposed to be on a contiguous LVM logical volume. But I'm not sure.
It is important to get the terms right. A VG can not be on a LVM volume. What you mean is the root filesystem (in this case of type VXFS) that gets mounted on /. The root filesystem is usually on one of the logical volumes (typically lvol3) on vg00.
If there needs to be a contiguous LVM, then that typically pertains to the swap volume ( typically lvol2 on vg00), but that does not contain a VXFS file system and so does not have a block size / fragment size..). The contiguousness has to do with physical extents, not filesystem blocks / fragments..
Last edited by Scrutinizer; 12-26-2014 at 03:17 AM..
I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms.
Recently, my virtual server switched storage devices and I think the problem may be related to that change.... (2 Replies)
Hello,
in one default UFS filesystem we have 8K block size (bsize) and 1K fragmentsize (fsize). At this scenary I thought all "FileSytem IO" will be 8K (or greater) but never smaller than the fragment size (1K). If a UFS fragment/blocksize is allwasy several ADJACENTS sectors on disk (in a ... (4 Replies)
Hi Experts,
I have a script like
$ORACLE_HOME/bin/sqlplus username/password # << ENDSQL
set pagesize 0 trim on feedback off verify off echo off newp none timing off
set serveroutput on
set heading off
spool Schemaerrtmp.txt
select ' TIMESTAMP COMPUTER NAME ... (5 Replies)
#!/bin/sh
##########################################################################################################
#This script is being used for AOK application for cleaning up the .out files and zip it under logs directory.
# IBM
# Created
#For pdocap201/pdoca202 .out files for AOK
#1.... (0 Replies)
Hi,
We currently have an Oracle database running and it is creating lots of processes in the /proc directory that are 1000M in size. The size of the /proc directory is now reading 26T. How can this be if the root file system is only 13GB?
I have seen this before we an Oracle temp file... (6 Replies)
hi all,
in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders...
please help me, how can i find the total size of these specific files in the server... (3 Replies)
Hello Unix guru's
I want to check my OS Block size for the Solaris 8
Following is one of the line from df -g command.
Can anybody help to interpret the same.
/u03 (/dev/vx/dsk/oradg/vol03): 8192 block size 8192 frag size
205463552 total blocks 50433792... (1 Reply)