A computer components & hardware forum. HardwareBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » HardwareBanter forum » General Hardware & Peripherals » Storage & Hardrives
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

inode usage / file



 
 
Thread Tools Display Modes
  #1  
Old November 2nd 07, 05:02 AM posted to comp.arch.storage
zorba
external usenet poster
 
Posts: 3
Default inode usage / file

Hi,
I have a 1.4 TB Volume exported over NFS, accessed from a Linux
NFS(v3) client. I have to fill all indoes on this volume. One way of
doing it is to create so many files which is time consuming . One more
option to use is Snapmirror/Replication technologies to create this
Data set. Anything else more efficient than either of this ?
Can there be more than one inode per file ? I mean if I create a file
of 100gb for example, will it utilize only one inode or inode +
indirect inodes = total inode count ? And How to see per file inode
usage on linux ?

Please note I am talking about Netapp Wafl FS here.

I am trying my best to find out the answers, if anybody can help cut
short the time, will be great full.

thanks
Parinay

  #2  
Old November 2nd 07, 04:09 PM posted to comp.arch.storage
Dan Rumney
external usenet poster
 
Posts: 5
Default inode usage / file

See http://en.wikipedia.org/wiki/Inode for information about inodes.

As noted there, each file maps on to a single inode.

Therefore, if you want to use up all the inodes, just create a script
which writes many small files. There's nothing particularly
inefficient about this. It'll simply take some time to complete due to
simple fact that it takes time to write things

  #3  
Old November 2nd 07, 04:51 PM posted to comp.arch.storage
Bakul Shah
external usenet poster
 
Posts: 2
Default inode usage / file

zorba wrote:

I have a 1.4 TB Volume exported over NFS, accessed from a Linux
NFS(v3) client. I have to fill all indoes on this volume. One way of
doing it is to create so many files which is time consuming . One more
option to use is Snapmirror/Replication technologies to create this
Data set. Anything else more efficient than either of this ?


Write a script. In /bin/sh:

x=0; while touch $x; do x=$(($x + 1)); done

Can there be more than one inode per file ? I mean if I create a file
of 100gb for example, will it utilize only one inode or inode +
indirect inodes = total inode count ? And How to see per file inode
usage on linux ?


One inode is used per file. Use

df -i

to see the inode count.

Please note I am talking about Netapp Wafl FS here.

I am trying my best to find out the answers, if anybody can help cut
short the time, will be great full.


I sense a lot of confusion. I am not even sure if it is inodes
you want. What you wrote seems to make more sense if the word
"inode" is replaced with the word "block". If I were you I'd focus
on learning the basic concepts as that will save more time and
pain in the long run.
  #4  
Old November 3rd 07, 01:07 AM posted to comp.arch.storage
zorba
external usenet poster
 
Posts: 3
Default inode usage / file

On Nov 2, 9:51 pm, Bakul Shah wrote:
zorba wrote:
I have a 1.4 TB Volume exported over NFS, accessed from a Linux
NFS(v3) client. I have to fill all indoes on this volume. One way of
doing it is to create so many files which is time consuming . One more
option to use is Snapmirror/Replication technologies to create this
Data set. Anything else more efficient than either of this ?


Write a script. In /bin/sh:

x=0; while touch $x; do x=$(($x + 1)); done

Can there be more than one inode per file ? I mean if I create a file
of 100gb for example, will it utilize only one inode or inode +
indirect inodes = total inode count ? And How to see per file inode
usage on linux ?


One inode is used per file. Use

df -i

to see the inode count.

Please note I am talking about Netapp Wafl FS here.


I am trying my best to find out the answers, if anybody can help cut
short the time, will be great full.


I sense a lot of confusion. I am not even sure if it is inodes
you want. What you wrote seems to make more sense if the word
"inode" is replaced with the word "block". If I were you I'd focus
on learning the basic concepts as that will save more time and
pain in the long run.


Agreed. Thanks a lot.

  #5  
Old November 3rd 07, 05:00 AM posted to comp.arch.storage
Faeandar
external usenet poster
 
Posts: 191
Default inode usage / file

On Fri, 02 Nov 2007 05:02:28 -0000, zorba wrote:

Hi,
I have a 1.4 TB Volume exported over NFS, accessed from a Linux
NFS(v3) client. I have to fill all indoes on this volume. One way of
doing it is to create so many files which is time consuming . One more
option to use is Snapmirror/Replication technologies to create this
Data set. Anything else more efficient than either of this ?
Can there be more than one inode per file ? I mean if I create a file
of 100gb for example, will it utilize only one inode or inode +
indirect inodes = total inode count ? And How to see per file inode
usage on linux ?

Please note I am talking about Netapp Wafl FS here.

I am trying my best to find out the answers, if anybody can help cut
short the time, will be great full.

thanks
Parinay


I'm curious why you need to use all the inodes? One posters
distinction between blocks and inodes may have shed some light.

Are you trying to "burn-in" a filer or volume? You can use 'hammer'
if that is the case. It's a built-in command in Ontap.

~F
  #6  
Old November 5th 07, 07:10 PM posted to comp.arch.storage
the wharf rat
external usenet poster
 
Posts: 34
Default inode usage / file

In article . com,
zorba wrote:
Hi,
I have a 1.4 TB Volume exported over NFS, accessed from a Linux
NFS(v3) client. I have to fill all indoes on this volume. One way of
doing it is to create so many files which is time consuming . One more


export foo=1
while (`true`)
do
ln /firstfile /firstfile.${foo}
if [ "$?" = "1" ]
then
break
fi
foo=`expr foo + 1`
done

Wafl shoudn't have any problem with the pathologically large
directory you'll end up with...

  #7  
Old November 9th 07, 09:29 PM posted to comp.arch.storage
hsing
external usenet poster
 
Posts: 7
Default inode usage / file

On Nov 5, 11:10 am, (the wharf rat) wrote:
In article . com,

zorba wrote:
Hi,
I have a 1.4 TB Volume exported over NFS, accessed from a Linux
NFS(v3) client. I have to fill all indoes on this volume. One way of
doing it is to create so many files which is time consuming . One more


export foo=1
while (`true`)
do
ln /firstfile /firstfile.${foo}
if [ "$?" = "1" ]
then
break
fi
foo=`expr foo + 1`
done

Wafl shoudn't have any problem with the pathologically large
directory you'll end up with...


"ln" command does not create new inodes; it just creates new directory
entries. "ln -s" (symbolic link) can create new inodes.

Wafl does have limitation on number of entries in a directory, but it
is big.

If the desired action is to fill all the blocks, "ndmpcopy" can be
used to copy data between volumes (or copy data within a volume).
However, one may use up all inodes before all blocks are used. Then,
"maxfiles" can be used to add more inodes to a volume.

  #8  
Old November 9th 07, 10:10 PM posted to comp.arch.storage
Edwin Cooke
external usenet poster
 
Posts: 4
Default inode usage / file

In message . com,
zorba parinay(at)gmail.com wrote:

Hi,
I have a 1.4 TB Volume exported over NFS, accessed from a Linux
NFS(v3) client. I have to fill all indoes on this volume. One way of
doing it is to create so many files which is time consuming . One more
option to use is Snapmirror/Replication technologies to create this
Data set. Anything else more efficient than either of this ?
Can there be more than one inode per file ? I mean if I create a file
of 100gb for example, will it utilize only one inode or inode +
indirect inodes = total inode count ? And How to see per file inode
usage on linux ?

Please note I am talking about Netapp Wafl FS here.



and in message ,
"the wharf rat" wrat(at)panix.com replied
|
| Hi,
| I have a 1.4 TB Volume exported over NFS, accessed from a Linux
| NFS(v3) client. I have to fill all indoes on this volume. One way of
| doing it is to create so many files which is time consuming . One more
|
| [suggested script omitted]
|
| Wafl shoudn't have any problem with the pathologically large
| directory you'll end up with...


Wharf Rat, you must be joking, right?

WAFL's performance will degrade for very large dirctories.


In message ,
Bakul Shah usenet(at)bitblocks.com wrote
}
} zorba wrote:
}
} I have a 1.4 TB Volume exported over NFS, accessed from a Linux
} NFS(v3) client. I have to fill all indoes on this volume. One way of
} doing it is to create so many files which is time consuming . One more
} option to use is Snapmirror/Replication technologies to create this
} Data set. Anything else more efficient than either of this ?
}
} Write a script. In /bin/sh:
}
} x=0; while touch $x; do x=$(($x + 1)); done
}
} Can there be more than one inode per file ? I mean if I create a file
} of 100gb for example, will it utilize only one inode or inode +
} indirect inodes = total inode count ? And How to see per file inode
} usage on linux ?
}
} One inode is used per file. Use
}
} df -i
}
} to see the inode count.
}
} Please note I am talking about Netapp Wafl FS here.
}
} I am trying my best to find out the answers, if anybody can help cut
} short the time, will be great full.
}
} I sense a lot of confusion. I am not even sure if it is inodes
} you want. What you wrote seems to make more sense if the word
} "inode" is replaced with the word "block". If I were you I'd focus
} on learning the basic concepts as that will save more time and
} pain in the long run.


NetApp's WAFL, the "write-anywhere file layout", is enough different from
other filesystems (such as ufs, ntfs, or ext2fs) that advice which makes
sense for those filesystems does *not* necessarily apply to WAFL.

By default, NetApp's WAFL filesystem allocates one inode (to store one
file) for every 32K bytes of disk space in a volume.

The "df -i" command will work on a Linux client, but some NFS clients
may not support it. On the other hand, the NetApp filer itself (through
the Data ONTAP command-line interface) does support "df -i".

As Bakul has observed, there does seem to be confusion here.

Zorba, it is not clear what you mean by "I have to fill all indoes"
[presumably "inodes"?]. Does that mean that you want to create a
number of files equal to the "maxfiles" value? (The per-volume
value reported by the filer for the "maxfiles" command output.)
Are you running some kind of performance or NFS stress test?
Did you make some intentional adjustment of "maxfiles"?

While the touch command will create a zero-length file (thus
allocating an inode), this is not a typical usage pattern, so
any results from the test may not apply to real-life operation.

--
Edwin
  #9  
Old November 10th 07, 06:29 AM posted to comp.arch.storage
the wharf rat
external usenet poster
 
Posts: 34
Default inode usage / file

In article .com,
hsing wrote:

"ln" command does not create new inodes; it just creates new directory
entries. "ln -s" (symbolic link) can create new inodes.


Ok, so I forgot the -s. I'll turn in my root password :-)

If the desired action is to fill all the blocks, "ndmpcopy" can be
used to copy data between volumes (or copy data within a volume).


I think the guy wanted to avoid allocating actual data blocks
because of time and space limitations. ln will cause any number of inodes
to point to the same data block so it might do what he wants.


  #10  
Old November 10th 07, 06:43 AM posted to comp.arch.storage
the wharf rat
external usenet poster
 
Posts: 34
Default inode usage / file

In article ,
Edwin Cooke wrote:

Wharf Rat, you must be joking, right?

WAFL's performance will degrade for very large dirctories.


Not nearly as much as UFS or EXT2 in my experience.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
technical trivia: CPU usage inverse of hard drive usage John Doe Homebuilt PC's 1 November 1st 07 04:47 AM
PF usage. What is it? and RAM usage problems. greg77 via HWKB.com Storage (alternative) 12 September 25th 06 02:00 PM
High Page File Usage...Why ???? sypher0101 Homebuilt PC's 0 April 17th 05 02:15 PM
Swap file usage HC General 6 March 6th 05 03:05 PM
How do I fix a Service Controler Manager File Error (Category 7000) - file not found M. B. Storage (alternative) 0 February 6th 04 01:58 PM


All times are GMT +1. The time now is 08:34 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 HardwareBanter.
The comments are property of their posters.