タグ

NFSに関するfumiyasのブックマーク (2)

  • SMB と NFS のロックについて | Turn Clockwise Or Otherwise

    今回はロックを通して、SMB/NFS のプロトコルを眺めてみることにする。 1. ロックはなぜ必要か?そもそもなぜロックが必要かと言えば、排他制御のためである。複数のアプリケーションやクライアントから同じファイルを操作していた場合、書き込み(場合によっては読みだしも)ある瞬間特定のアプリケーションやクライアントが他に邪魔されることなくその操作を行えることが必要となってくる。このため、何らかの仕組みを用いてこれを保証することが必要になってくる。この仕組みの一つとして「ロック」が存在する。排他制御をきちんとやることによってデータの予期せぬ破壊や古いデータに基づいてアプリケーションが動いたりすることを防ぐことができる。 ロックの種類は大きく分けて 2 種類あり、強制的なロック (mondatory lock) とアドバイザリーロック(advisory lock)というものが存在する。前者はロック

    SMB と NFS のロックについて | Turn Clockwise Or Otherwise
  • Chris's Wiki :: blog/linux/NFSMountstatsBytesEvents

    The bytes and events data for NFS mounts in /proc/self/mountstats The per NFS mount mountstats performance stats (see here for an introduction) have two sets of high level statistics, reported in the bytes: and events: lines. Both of these come from counters that are described in comments in include/linux/nfs_iostat.h in the kernel source. Of the two, the simpler is bytes:. A typical bytes: line l

  • 1