Sponsored Content
Full Discussion: fragments in Solaris 8
Top Forums UNIX for Advanced & Expert Users fragments in Solaris 8 Post 20395 by Perderabo on Thursday 25th of April 2002 02:07:41 PM
Old 04-25-2002
Actually, that is not correct. Data blocks may not be contiguous. When a file grows and needs a new data block unix will try to find one nearby. But it's willing to take any data block if it must. Think about the case where a program runs away and writes a file that completely fills up the file system. That file had to use every available block. It will be severely scattered. Normally we call such a file "fragmented", which means that the blocks have been allocated all over the disk. Don't confuse that with "fragments" which are pieces of a block allocated to the end of a file.

Modern disks have a variable geometry and its no longer possible to tune the rotational delay to be optimal for the entire disk. But in the old days the rotational delay was used to help ensure that disk blocks were never contiguous in a physical sense. That was because unix could not issue the next read in time before the next block rotated away.
 

5 More Discussions You Might Find Interesting

1. Solaris

Unable to login using ssh,telnet onto my solaris machine with solaris 10 installed

Hi, I am unable to login into my terminal hosting Solaris 10 and get the below error message "Server refused to allocate pty ld.so.1: sh: fatal: libc.so.1: open failed: No such file or directory " Is there anyways i can get into my machine and what kind of changes are required to be... (7 Replies)
Discussion started by: sankasu
7 Replies

2. Solaris

ipfilter blocking ip fragments

For some reason ipfilter is blocking inbound fragmented ip packets (the packets are larger than the interface's MTU) that are encapsulating UDP segments. The connection works, so I know ipfilter is letting some traffic through, it is just a lot slower than it should be. Rules that allow the... (3 Replies)
Discussion started by: ilikecows
3 Replies

3. IP Networking

Solaris 11 Express NAT/Router IP Fragments

Upon replacing my linux router/server with a Solaris one I've noticed very poor network performance. The server itself has no issues connecting to the net, but clients using the server as a router are getting a lot of IP fragments as indicated from some packet sniffing I conducted. Here was my... (3 Replies)
Discussion started by: vectox
3 Replies

4. Shell Programming and Scripting

Extract fragments from file

I have a .xml file that looks something like this : <measInfo> ......... string1 ......... </measInfo> <measInfo> ...... string2 ........ </measInfo> I want to extract only the 'chunk of file' from '<measInfo>' to '</measInfo>' containing string1 (or a certain string that I... (13 Replies)
Discussion started by: black_fender
13 Replies

5. Shell Programming and Scripting

Why the results of these two code fragments are not the same?

Code 1: #!/bin/sh for arg1 in "$@" do counter=0 for arg2 in "$@" do if && then counter=$((counter+1)) continue fi (8 Replies)
Discussion started by: johnprogrammer
8 Replies
tunefs(1M)																tunefs(1M)

NAME
tunefs - tune up an existing HFS file system SYNOPSIS
maxcontig] rotdelay] maxbpg] minfree] advanced read-ahead] special-device DESCRIPTION
The command is used to alter dynamic parameters that affect HFS file system layout policies. Parameters to be altered are specified by the options and arguments provided on the command line as described below. affects how the file system blocks are laid out on the disk. The default rotdelay value set by the and commands (see newfs(1M) and mkfs(1M)) is 0 milliseconds, causing file system blocks to be written and read consecutively. In general, this should be the optimal tun- ing, making the use of unnecessary. Options recognizes the following options and command-line arguments: Set the maximum number of contiguous blocks that will be laid out before forcing a rotational delay to maxcontig (see below). The default value is because most device drivers require one interrupt per disk transfer. For device drivers that can chain several buffers together in a single transfer, set maxcontig to the maximum chain length. rotdelay is the expected time (in milliseconds) to service a transfer completion interrupt and initiate a new transfer on the same disk. It is used to determine how much rotational spacing to place between successive blocks in a file. maxbpg specifies the maximum number of blocks any single file can allocate out of a cylinder group before it is forced to begin allocating blocks from another cylinder group. Typically this value is set to about one fourth of the total blocks in a cylinder group. The intent is to prevent any single file from using up all the blocks in a single cylin- der group, thus degrading access times for all files subsequently allocated in that cylinder group. The effect of this limit is to cause large files to do long seeks more frequently than if they were allowed to allocate all the blocks in a cylinder group before seeking elsewhere. For file systems with exclusively large files, this parameter should be set higher. minfree specifies the percentage of space that is not available to normal users; i.e., the minimum free space threshold. The default value used is 10%. This value can be set to zero. If set to zero, throughput performance drops to as little as one-third of the efficiency expected when the threshold is set at 10%. Note that if minfree is raised above the current usage level, users cannot allocate files until enough files have been deleted to meet the new threshold requirement. Advanced read-ahead specifies whether the file system should use an advanced predictive read-ahead algorithm. The implementation requires more system resources in exchange for an advanced access pattern recognition. Patterns include forward sequential, backward sequential, forward strided, and backward strided. This value can be set to zero (disable) or one (enable). By default, a file system will have advanced read-ahead enabled when created. (visual) Display current values contained in the primary super-block to standard output. (all) Modify redundant super-blocks as well as the primary super-block as stipulated by the configuration options and arguments. special-device is the name of the file system to be tuned. It is either a block or character special file if the file system is not mounted, or a block special file if the file system is mounted. WARNINGS
Root file system tuning is normally done during initial system software installation. Tuning the root file system after installation has little useful effect because so many files have already been written. AUTHOR
was developed by the University of California, Berkeley. SEE ALSO
dumpfs(1M), mkfs(1M), newfs(1M). tunefs(1M)
All times are GMT -4. The time now is 05:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy