From: higuita <higuita@GMX.net> - 2009-08-31 23:28:29
|
Hi all On Mon, 31 Aug 2009 15:42:50 -0500, Les Mikesell <les...@gm...> wrote: > And the new directory entry may be all the way across the disk from the > existing inode - and far from any other inode in this directory. true, but system cache takes care of most directory access, so unless you are doing a find, isnt as huge performance hit as in windows > And, assuming you have enough disk activity to keep the cache out of > date, that 'ls -l' will have to move the disk head to the directory > location and then the inode to get the data - if you list many files in wrong, the ls -l doesnt need to move to the files inode to do anything, the directory have all the necessary info. in the files inodes there is the file data, you only need to go there when you need to read that file data > the same directory that were links to existing files, the head may have > to seek all over the place to get the inoded data. when you list a directory, you just read the directory inodes, if you use a filesystem with index (like reiserfs, xfs and ext3 with the dir_index enabled, etc) the dir of the all dir or just one file will take almost the same time, even if there are many files on that dir cya higuita -- Naturally the common people don't want war... but after all it is the leaders of a country who determine the policy, and it is always a simple matter to drag the people along, whether it is a democracy, or a fascist dictatorship, or a parliament, or a communist dictatorship. Voice or no voice, the people can always be brought to the bidding of the leaders. That is easy. All you have to do is tell them they are being attacked, and denounce the pacifists for lack of patriotism and exposing the country to danger. It works the same in every country. -- Hermann Goering, Nazi and war criminal, 1883-1946 |