minfree contents of the disk


 
Thread Tools Search this Thread
Operating Systems Solaris minfree contents of the disk
# 1  
Old 05-10-2009
Question minfree contents of the disk

Hi

Can anyone tell me the details (or) purpose of the minfree(10%) space in disk.


Thanks in advance
MaroV
# 2  
Old 05-10-2009
When you do `newfs`, there's the -m switch, with which you specify the
procentage of the disk which will remain reserved ("minfree"). When the
disk fills up to this threshold, any nonprivileged user that tries to write
to the FS will be denied, getting a message that the disk is full. The
reality of it is that the disk still has free space, but only root and
processes can use that space to write to.
# 3  
Old 05-12-2009
Hi Incrdible

Can you tell me what are the processes reside in min free space.

Thanks
MaroV
# 4  
Old 05-12-2009
minfree is the percentage of a file system reserved for the superuser or privileged processes. The value is 10% by default on UFS file systems.

/usr/sbin/fstyp -v raw_device | grep minfree

ex.
# /usr/sbin/fstyp -v /dev/rdsk/c0t0d0s0 | grep minfree
minfree 10% maxbpg 2048 optim time
# 5  
Old 05-12-2009
vr_mari,
minfree may turn out useful, when your disk becomes full up to last byte. In that case you'd want to log in to system to kill/delete what caused the problem. But logging in to system triggers additional entries to utmpx, wtmpx and perhaps messages -> which require space. It's good to have some extra spare space in case something like the above hits your system.
I can't recall it right know for sure - but besides what Incredible described minfree may have something to do with managing fs fragmentation.
# 6  
Old 05-14-2009
yes, mine was on managing fs fragmentation
# 7  
Old 05-15-2009
minfree's purpose is to minimize fragmentation. If 10% of the the disk is free, then either all of the cylinder groups have about 10% free or some cylinder groups have a lot of free space. Under either condition the the original Mckusick filesystem code would allocate files with little fragmentation. The idea is that fast performance is worth a little disk space. 10% is probably excessive with today's large disks, but disk space keeps getting cheaper and I have never bothered to experiment with smaller values.

Allowing root to continue to use the disk past minfree is a bonus. But bear in mind that if root truely fills the disk, the last files written will almost certainly be very badly fragmented.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

If contents of A are in B then move the common contents to C

Hallo Team, I have 2 .csv files file A has 47600 lines and file B has 67000 lines FILEA SD0o9rb01-1d320ddbcc8d220f572739ebed5f58d1-v300g00 SD8bt0101-a0810bfe0e3396060126ec51b30dac0a-v300g00 SD05sce01-cb056af347ed4651f29eb3c3e9addbd6-v300g00... (3 Replies)
Discussion started by: kekanap
3 Replies

2. Shell Programming and Scripting

Folder contents getting appended as strings while redirecting file contents to a variable

Hi one of the output of the command is as below # sed -n "/CCM-ResourceHealthCheck:/,/---------/{/CCM-ResourceHealthCheck:/d;/---------/d;p;}" Automation.OutputZ$zoneCounter | sed 's/$/<br>/' Resource List : <br> *************************** 1. row ***************************<br> ... (2 Replies)
Discussion started by: vivek d r
2 Replies

3. Shell Programming and Scripting

Replace partial contents of file with contents read from other file

Hi, I am facing issue while reading data from a file in UNIX. my requirement is to compare two files and for the text pattern matching in the 1st file, replace the contents in second file by the contents of first file from start to the end and write the contents to thrid file. i am able to... (2 Replies)
Discussion started by: seeki
2 Replies

4. Shell Programming and Scripting

I want to delete the contents of a file which are matching with contents of other file

Hi, I want to delete the contents of a file which are matching with contents of other file in shell scripting. Ex. file1 sheel,sumit,1,2,3,4,5,6,7,8 sumit,rana,2,3,4,5,6,7,8,9 grade,pass,2,3,4,5,6,232,1,1 name,sur,33,1,4,12,3,5,6,8 sheel,pass,2,3,4,5,6,232,1,1 File2... (3 Replies)
Discussion started by: ranasheel2000
3 Replies

5. UNIX for Dummies Questions & Answers

compare 2 file contents , if same delete 2nd file contents

Give shell script....which takes two file names as input and compares the contents, is both are same delete second file's contents..... I try with "diff"...... but confusion how to use "diff" with if ---else Thanking you (5 Replies)
Discussion started by: krishnampkkm
5 Replies

6. Filesystems, Disks and Memory

Erasing hard disk contents using dd or dcfldd

Hi, I am writing a script to wipe my hard disk, in a relatively secure manner by over-writing the disk with 3 patterns. So, I run the dd/dcfldd command 3 times with a sync call in between each command call in the script. #!/bin/sh dcfldd pattern=99 conv=notrunc of=/dev/sda sync dcfldd... (7 Replies)
Discussion started by: jake24
7 Replies

7. Solaris

doubt reg Minfree.

Hi When setting minfree to a certain percentage using the tunefs command, does this actually prevent users from accesing the partition when the limit is reached or not?.. It is a separate file system or not More clarification regarding minfree will be useful for me . (6 Replies)
Discussion started by: rogerben
6 Replies

8. AIX

TUNING: fre, minfree, and maxfree relationship

Here's a good question about tuning. Why does my system continuously scan (sr) to free up pages when the amount of "fre" pages is well ABOVE my minfree and maxfree settings: $ vmo -a | grep free maxfree = 2560 minfree = 2048 $ Here is sample output from a... (2 Replies)
Discussion started by: kah00na
2 Replies

9. UNIX for Dummies Questions & Answers

How to Copy Contents from CD to Hard disk

Hello all.. Iam New to Unix Environment. I need to copy .cpio file from CD to a Folder on Sun 5.8 Box. Can anyone give me the commands to execute this ?.. Thanks in advance Ron (4 Replies)
Discussion started by: vr76413
4 Replies
Login or Register to Ask a Question