Mac/tunefs
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
RIGHT:[[Mac/Disk操作]]
*tunefs [#nc55cb9b]
tunefs で UFS の設定変更ができる.
**現在の設定を見る [#t29e2e93]
$ sudo diskutil unmount /Volumes/UFS
$ sudo tunefs -N /dev/disk1s2
tunefs: current settings
maximum contiguous block count 32
rotational delay between contiguous blocks 0ms
maximum blocks per file in a cylinder group 1024
minimum percentage of free space 0%
optimization preference: space
track skew 0 sectors
expected average file size 16384
expexted number of files per directory 64
tunefs: no changes made
**minimum free space を設定する [#a405d118]
%%空きスペースが設定したパーセントより少なくなれば,スペ...
%%ただ,この設定値,私が思うのと逆の感じで,%%
%%空きスペースとして設定したパーセントより空きスペースが...
%%スペース重視となり,少なくなれば時間重視となるようだ.%%
%%実装が間違ってるのか,私の認識が間違っているのかは分か...
私の認識が間違っていた.
こういうことなんだよ.
>通常のユーザからは保護されている領域のパーセンテージを指...
>これは最低限の空き領域のしきい値となります。
>デフォルト値は<ufs/ffs/fs.h> にて MINFREE と定義され、現...
で,minfree を 10% より小さくするなら最適化を space に設...
minfree を 10%以上に設定すれば,最適化を time にすること...
$ sudo tunefs -m 10 /dev/disk1s2
tunefs: minimum percentage of free space changes from 0%...
tunefs: should optimize for time with minfree >= 5%
っていうか次のようにして使うんだ,たぶん.
$ sudo tunefs -o time -m 10 /dev/disk1s2
tunefs: optimization preference changes from space to time
tunefs: minimum percentage of free space changes from 10...
%% $ sudo tunefs -o space -m 90 /dev/disk1s2 %% ~
%% tunefs: optimization preference changes from time to s...
%% tunefs: should optimize for time with minfree >= 5% %% ~
%% tunefs: minimum percentage of free space changes from ...
%% tunefs: should optimize for time with minfree >= 5% %%
いや,違うな.
tunefs: should optimize for time with minfree >= 5%
って書いてあるってことは,時間の最適化をするときのパーセ...
書くんだな,たぶん.
**%%最適化をオフにする%% [#a07654e0]
%%時間による最適化をしないようにできる.%%
$ sudo tunefs -m 0 /dev/disk1s2
tunefs: minimum percentage of free space changes from 90...
**すべてのスーパーブロックへ [#w16732fe]
tunefs で設定したものは,デフォルトのスーパーブロックにし...
これを,すべてのスーパーブロックに書き込むには "-A" オプ...
終了行:
RIGHT:[[Mac/Disk操作]]
*tunefs [#nc55cb9b]
tunefs で UFS の設定変更ができる.
**現在の設定を見る [#t29e2e93]
$ sudo diskutil unmount /Volumes/UFS
$ sudo tunefs -N /dev/disk1s2
tunefs: current settings
maximum contiguous block count 32
rotational delay between contiguous blocks 0ms
maximum blocks per file in a cylinder group 1024
minimum percentage of free space 0%
optimization preference: space
track skew 0 sectors
expected average file size 16384
expexted number of files per directory 64
tunefs: no changes made
**minimum free space を設定する [#a405d118]
%%空きスペースが設定したパーセントより少なくなれば,スペ...
%%ただ,この設定値,私が思うのと逆の感じで,%%
%%空きスペースとして設定したパーセントより空きスペースが...
%%スペース重視となり,少なくなれば時間重視となるようだ.%%
%%実装が間違ってるのか,私の認識が間違っているのかは分か...
私の認識が間違っていた.
こういうことなんだよ.
>通常のユーザからは保護されている領域のパーセンテージを指...
>これは最低限の空き領域のしきい値となります。
>デフォルト値は<ufs/ffs/fs.h> にて MINFREE と定義され、現...
で,minfree を 10% より小さくするなら最適化を space に設...
minfree を 10%以上に設定すれば,最適化を time にすること...
$ sudo tunefs -m 10 /dev/disk1s2
tunefs: minimum percentage of free space changes from 0%...
tunefs: should optimize for time with minfree >= 5%
っていうか次のようにして使うんだ,たぶん.
$ sudo tunefs -o time -m 10 /dev/disk1s2
tunefs: optimization preference changes from space to time
tunefs: minimum percentage of free space changes from 10...
%% $ sudo tunefs -o space -m 90 /dev/disk1s2 %% ~
%% tunefs: optimization preference changes from time to s...
%% tunefs: should optimize for time with minfree >= 5% %% ~
%% tunefs: minimum percentage of free space changes from ...
%% tunefs: should optimize for time with minfree >= 5% %%
いや,違うな.
tunefs: should optimize for time with minfree >= 5%
って書いてあるってことは,時間の最適化をするときのパーセ...
書くんだな,たぶん.
**%%最適化をオフにする%% [#a07654e0]
%%時間による最適化をしないようにできる.%%
$ sudo tunefs -m 0 /dev/disk1s2
tunefs: minimum percentage of free space changes from 90...
**すべてのスーパーブロックへ [#w16732fe]
tunefs で設定したものは,デフォルトのスーパーブロックにし...
これを,すべてのスーパーブロックに書き込むには "-A" オプ...
ページ名: