亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標(biāo)題: 提問:ext4的inode怎么那么少,有什么辦法弄多點(diǎn)么 [打印本頁]

作者: fhzxt    時(shí)間: 2009-03-17 12:20
標(biāo)題: 提問:ext4的inode怎么那么少,有什么辦法弄多點(diǎn)么
我最近把內(nèi)核弄到2.6.28了,就弄了個(gè)ext4分區(qū)(mk.ext4)做/tmp用,分了1G,可是看inode才60000多點(diǎn)阿 ,是不是有點(diǎn)少?簡直是太少了,我想問這是為什么,我什么參數(shù)沒調(diào)好么?

[ 本帖最后由 fhzxt 于 2009-3-17 12:25 編輯 ]
作者: kns1024wh    時(shí)間: 2009-03-17 12:35
標(biāo)題: 回復(fù) #1 fhzxt 的帖子
mkfs.ext4
看看suse的一個(gè)測試
http://oss.org.cn/2008linuxDeveloperSymposium/liyong_zh.pdf
作者: fhzxt    時(shí)間: 2009-03-17 13:46
是mkfs.ext4我打錯(cuò)了,那個(gè)pdf初步看了下,和我的情況很類似,
已看完,他的情況是側(cè)重刪除的性能(ext4的創(chuàng)建性能我已經(jīng)很滿意了,小文件的創(chuàng)建性能已經(jīng)接近reiserfs),刪除的確是有點(diǎn)慢,但這不是我的重點(diǎn),我所想解決的問題是inode的數(shù)量是否可以提高(在mkfs時(shí)或者后來的非格式化調(diào)整皆可)

[ 本帖最后由 fhzxt 于 2009-3-17 13:52 編輯 ]
作者: jerrywjl    時(shí)間: 2009-03-17 14:01
原帖由 fhzxt 于 2009-3-17 13:46 發(fā)表
是mkfs.ext4我打錯(cuò)了,那個(gè)pdf初步看了下,和我的情況很類似,
已看完,他的情況是側(cè)重刪除的性能(ext4的創(chuàng)建性能我已經(jīng)很滿意了,小文件的創(chuàng)建性能已經(jīng)接近reiserfs),刪除的確是有點(diǎn)慢,但這不是我的重點(diǎn), ...


如果是ext3的話,需要關(guān)注一個(gè)叫做bytes_per_inode的值。通過這個(gè)值的修改可以提高inode數(shù)量,我想ext4差不多吧?不過不知道行不行。
作者: bingosek    時(shí)間: 2009-03-17 20:13
你要裝很多小文件嗎?如果不是的話,用缺省值就可以了
另外,你可以在mkfs時(shí)手工指定inode數(shù)量
作者: Celinde    時(shí)間: 2009-03-17 22:04
man mkfs.ext4

  -i bytes-per-inode
              Specify  the bytes/inode ratio.  mke2fs creates an inode for every bytes-per-
              inode bytes of space on the disk.  The larger the bytes-per-inode ratio,  the
              fewer inodes will be created.  This value generally shouldn't be smaller than
              the blocksize of the filesystem, since in that case more inodes would be made
              than  can ever be used.  Be warned that it is not possible to expand the num‐\r
              ber of inodes on a filesystem after it is created, so be careful deciding the
              correct value for this parameter.

  -N number-of-inodes
              Overrides  the  default  calculation  of  the number of inodes that should be
              reserved for the filesystem (which is based on the number of blocks  and  the
              bytes-per-inode  ratio).   This  allows  the  user  to  specify the number of
              desired inodes directly.


PS,吐的真惡心,要真是文件系統(tǒng)有問題也就算了.....
作者: oldoger    時(shí)間: 2009-03-18 09:38
mkfs的時(shí)候可以手工指定,不過要注意的話,越大,inode占用的空間也越大。
作者: y_pengming    時(shí)間: 2009-03-18 15:52
study




歡迎光臨 Chinaunix (http://www.72891.cn/) Powered by Discuz! X3.2