最近のトラックバック

2008年5月

        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

ch08: ☆rename semantics

328ページ、2パラの最後

Interestingly, rename is the one POSIX file operation that should have an atomic update to multiple user-visible metadata structures to provide ideal semantics. POSIX does not require said semantics and most implementations, including FreeBSD, cannot provide it.

最初の文と2番目の分は矛盾してるような気がするのだが、どういう話の流れなんだろう? 何事もなければ要求されるのだが、わざわざ要求しないことが仕様に書かれているということなのだろうか。

ここの話題は、rename システムコールの途中で障害が発生すると名前が2つ残ってしまう可能性があるということ。

ch08: ☆conservatively

327ページ、2パラ

If link counts are being kept conservatively, rename involves at least four disk updates in sequence: one to increment the inode's link count, one to add the new directory entry, one to remove the old directory entry, and one to decrement the link count.

常にリンク数の下限を確保するためには、名前の変更は連続する4回のディスクの更新を必要する。すなわち、inode のリンク数を増加させるために1回、新しいディレクトリエントリを追加するために1回、古いディレクトリエントリを削除するために1回、リンク数を減少させるために1回である。

どこからも参照されないファイルを作らないためには、リンク数を減らしすぎてはならない。なので conservatively の訳は、これで多分あってると思うのだが、辞書を見ると「内輪に見積もる」というような意味もある。多めに見積もるのと少なめに見積もるのの、どちらが conservative かって、状況によるよね。

前のページの2段落目にも同じような表現がある。

ch08: ☆ pointers and descriptions

324ページ、"Soft Updates" の冒頭

In filesystems, metadata (e.g., directories, inodes, and free block maps) gives structure to raw storage capacity. Metadata provides pointers and descriptions for linking multiple disk sectors into files and identifying those files.
ファイルシステムにおけるメタデータ (metadata) (たとえば、ディレクトリ、inode、未使用ブロックマップ) は、未加工の記憶領域に構造を与えるためのものである。メタデータは、複数のディスクセクタからファイルを構成し、それらのファイルを識別するための手がかりを与え意味を定義する。

この pointers and descriptions の意味がどうも釈然としない。

ch07: ☆stripped volume

270ページ、2個目の黒丸

Aggregation of disks to provide a RAID, mirrored, or stripped logical volume

striped のタイポだろうと解釈し、勝手にそう訳した。

ch05: ☆active count = usage count?

207ページ、最後の文:

When it wants to update the active count for a page, it uses pmap_ts_referenced() to count the number of uses of the page since it was last scanned.

この active count は、usage count と同じ意味なんだろうか。多分そうなんだろうなあ...
文章中ではここにしか登場しないが、擬似コードの中では使われている。

ch05: ☆least-recently used の訳語

188ページ、2パラ。

"least-recently used", "least-actively used" はどう訳す?

続きを読む "ch05: ☆least-recently used の訳語" »

Powered by TypePad