forum.netbsd.se - NetBSD Sweden

You are not logged in.

#1 2005-12-07 23:03:58

fredrik
Administrator
From: Göteborg, Sweden
Registered: 2004-05-10
Posts: 229
Website

mount_mfs

I have a mfs partition that i mount with:

Code:

 /dev/wd0b /mount_point mfs rw,-s=270m,-i=1k

The -i flag specifies bytes-per-inode and since i need quite alot inodes the -i flag i low.

Now to the question:

The manpage say that i can specify the number of inodes with the -n flag, will this use less memory?
The memory efficienty with the current mfs setup is not that optimal.

Offline

 

#2 2005-12-08 18:16:02

elip
Guest

Re: mount_mfs

hmm...not sure i understand...if you set your number of inodes with the -n flag to the same amount of inodes that you get when you use -s=270m,-i=1k, then the memory usage will and should stay identical...i've used both flags before, with no difference in memory consumption...i'm not sure i understood your question entirely though...so please elaborate.

 

#3 2005-12-09 15:14:23

fredrik
Administrator
From: Göteborg, Sweden
Registered: 2004-05-10
Posts: 229
Website

Re: mount_mfs

You answered my question smile

I wanted to know if -i and -n consumed the same amount of memory and they should do as you say. I give my hope to tmpfs (when it is ready) to be more efficient with the memory then mfs is smile

I get about 230MB usable memory from a 270MB mfs partition.

Offline

 

#4 2005-12-09 15:15:33

fredrik
Administrator
From: Göteborg, Sweden
Registered: 2004-05-10
Posts: 229
Website

Re: mount_mfs

But perhaps i can optimize is a bit by using the -n flag, because i really dont need all the inods that "-s=270m,-i=1k" gives me.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB