Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linux²»ÐèÒª´ÅÅÌËéƬÕûÀí





Linux²»ÐèÒª´ÅÅÌËéƬÕûÀí¡£
ÒÔÏÂÒý×Ôlinux¹Ù·½ÍøÕ¾¶ÔËéƬµÄ½â˵£ºÀ´Ô´ÓÚ
http://www.linux.org/docs/ldp/howto/Partition/appendix.html#fragmentation

ÒýÓÃ:
10.4. Some facts about file systems and fragmentation
Disk
space is administered by the operating system in units of blocks and
fragments of blocks. In ext2, fragments and blocks have to be of the
same size, so we can limit our discussion to blocks.
Files
come in any size. They don't end on block boundaries. So with every
file a part of the last block of every file is wasted. Assuming that
file sizes are random, there is approximately a half block of waste for
each file on your disk. Tanenbaum calls this "internal fragmentation"
in his book "Operating Systems".
You can guess the number of files on your disk by the number of allocated inodes on a disk. On my disk
# df -i
Filesystem Inodes IUsed IFree %IUsed Mounted on
/dev/hda3 64256 12234 52022 19% /
/dev/hda5 96000 43058 52942 45% /var
there
are about 12000 files on / and about 44000 files on /var. At a block
size of 1 KB, about 6+22 = 28 MB of disk space are lost in the tail
blocks of files. Had I chosen a block size of 4 KB, I had lost 4 times
this space.
Data transfer is faster for large contiguous
chunks of data, though. That's why ext2 tries to preallocate space in
units of 8 contigous blocks for growing files. Unused preallocation is
released when the file is closed, so no space is wasted.
Noncontiguous
placement of blocks in a file is bad for performance, since files are
often accessed in a sequential manner. It forces the operating system
to split a disk access and the disk to move the head. This is called
"external fragmentation" or simply "fragmentation" and is a common
problem with MS-DOS file systems. In conjunction with the abysmal
buffer cache used by MS-DOS, the effects of file fragmentation on
performance are very noticeable. DOS users are ac


Ïà¹ØÎĵµ£º

ÔÚLinuxÃüÁîÐÐÏ°²×°Oracle 10g

Oracle 10gÖ§³ÖÔÚÃüÁîÐÐÏÂÓþ²Ä¬Ä£Ê½(Silent)°²×°£¬¸øÄÇЩûÓа²×°Í¼ÐνçÃæµÄLinuxϵͳÌṩÁ˼«´óµÄ±ãÀû¡£
ÏÂÃæÒÔFedora Core 6ΪÀý£¬½éÉÜÔÚÃüÁîÐÐÏ°²×°OracleOracle 10gµÄ·½·¨¡£
1 °²×°Ç°µÄ×¼±¸
×¼±¸¹¤×÷ÒªÓõǼΪrootÓû§À´½øÐС£
1.1 Ñ¡Ôñ°²×°»·¾³µÄÓïÑÔ
Oracle°²×°Ê±¿ÉÒÔͨ¹ý»·¾³±äÁ¿LANGÖ¸¶¨°²×°ÓïÑÔ£¬Èç¹ûLinu ......

linuxÇý¶¯Ä£¿é


¹¤×÷¶ÓÁУ¨work queue£©ÊÇÁíÍâÒ»ÖÖ½«¹¤×÷ÍƺóÖ´ÐеÄÐÎʽ £¬ËüºÍÎÒÃÇÇ°ÃæÌÖÂÛµÄËùÓÐÆäËûÐÎʽ¶¼Óв»Í¬¡£¹¤×÷¶ÓÁпÉÒ԰ѹ¤×÷Íƺ󣬽»ÓÉÒ»¸öÄÚºËÏß³ÌÈ¥Ö´ÐУ¬Ò²¾ÍÊÇ˵£¬Õâ¸öÏ°벿·Ö¿ÉÒÔÔÚ½ø³ÌÉÏÏÂÎÄÖÐÖ´ÐС£ÕâÑù£¬Í¨¹ý¹¤×÷¶ÓÁÐÖ´ÐеĴúÂëÄÜÕ¼¾¡½ø³ÌÉÏÏÂÎĵÄËùÓÐÓÅÊÆ¡£×îÖØÒªµÄ¾ÍÊǹ¤×÷¶ÓÁÐÔÊÐí±»ÖØе÷¶ÈÉõÖÁÊÇ˯Ãß¡£
ÄÇô£ ......

Linux ·þÎñÆ÷¼¯ÈºÏµÍ³ÊµÏÖ·½°¸Ïê½â

Ò»¡¢¼¯ÈºµÄ»ù±¾¸ÅÄî
ÓÐÒ»ÖÖ³£¼ûµÄ·½·¨¿ÉÒÔ´ó·ùÌá¸ß·þÎñÆ÷µÄ°²È«ÐÔ£¬Õâ¾ÍÊǼ¯Èº¡£
Cluster¼¯Èº¼¼Êõ¿ÉÈç϶¨Òå:Ò»×éÏ໥¶ÀÁ¢µÄ·þÎñÆ÷ÔÚÍøÂçÖбíÏÖΪµ¥Ò»µÄϵͳ£¬²¢ÒÔµ¥Ò»ÏµÍ³µÄģʽ¼ÓÒÔ¹ÜÀí¡£´Ëµ¥Ò»ÏµÍ³Îª¿Í»§¹¤×÷Õ¾Ìṩ¸ß¿É¿¿ÐԵķþÎñ¡£
´ó¶àÊýģʽÏ£¬¼¯ÈºÖÐËùÓеļÆËã»úÓµÓÐÒ»¸ö¹²Í¬µÄÃû³Æ£¬¼¯ÈºÄÚÈÎһϵͳÉÏÔËÐеķþÎñ ......

LinuxÎļþϵͳ·¢Õ¹Ñ¸ËÙ BTRFS±»¿´ºÃ

×î½üÁ½Ä꣬ÎļþϵͳµÃµ½Á˺ܴóµÄ·¢Õ¹¡£
SunÓпªÔ´µÄZFSÒÔ¼°ÊÕ¹ºµÄLustreÎļþϵͳ¡£Quantum¡¢Panasas¡¢ IBM¡¢»ÝÆÕ¡¢NetAppºÍRed HatÒ²¶¼ÔöÇ¿ÁËÎļþϵͳ¿ª·¢Á¦¶È¡£NFS£¨ÍøÂçÎļþϵͳ£©ÕýÔÚ¾­Àú´óµÄ±ä¶¯£¬Ö÷Òª´ú±í¾ÍÊÇpNFS£¨²¢ÐÐÍøÂçÎļþϵͳ£©¡£ºÁ²»Ææ¹ÖµÄÊÇ£¬ËùÓÐÕâЩ¿ª·¢Ðж¯´Ùʹ¿ªÔ´ÉçÇøÍƳöÕë¶ÔLinuxµÄ¸ü¸ßÐÔÄܵÄÎļþÏµÍ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ