NFS and iSCSI provide fundamentally different data sharing semantics.
NFS is inherently suitable for data sharing
, since
it enable files to be shared among multiple client machines.
In contrast, a block protocol such as iSCSI supports a single client
for each volume on the block server
. Consequently, iSCSI permits
applications running on a single client machine to share remote data,
but it is not directly suitable for sharing data across
machines. It is possible, however, to employ iSCSI in shared
multi-client environments by designing an appropriate distributed file
system that runs on multiple clients and accesses data from block
server.
The implications of caching are also different in the two scenarios.
In NFS, the file system is located at the server and so is the file
system cache (hits in this cache incur a network hop)
.
NFS clients also employ a cache that can hold both data
and meta-data. To ensure consistency across clients, NFS v2 and v3
require that client perform consistency checks with the server on
cached data and meta-data.
The validity of cached data at the client
is implementation-dependent--in Linux, cached meta-data is treated as
potentially stale after 3 seconds and cached data after 30 seconds.
Thus, meta-data and data reads may trigger a message exchange (i.e., a
consistency check) with the server even in the event of a cache hit.
NFS v4 can avoid this message exchange for data reads if the server
supports file delegation. From the perspective of writes, both data and
meta-data writes in NFS v2 are synchronous. NFS v3 and v4 supports
asynchronous data writes, but meta-data updates continue to be
synchronous. Thus, depending on the version, NFS has different
degrees of write-through caching
.
In iSCSI, the caching policy is governed by the file system. Since
the file system cache is located at the client, both data and
meta-data reads benefit from any cached content. Data updates are
asynchronous in most file systems. In modern file systems, meta-data
updates are also asynchronous, since such systems use log-based
journaling for faster recovery. In the ext3 file system, for
instance, meta-data is written asynchronously at commit points. The
asynchrony and frequency of these commit points is a trade-off between
recovery and performance (ext3 uses a commit interval of 5 seconds).
Thus, when used in conjunction with ext3, iSCSI supports a fully
write-back cache for data and meta-data updates.
Observe that the benefits of asynchronous meta-data update in iSCSI
come at the cost of lower reliability of data and meta-data
persistence than in NFS. Due to synchronous meta-data updates in NFS,
both data and meta-data updates persist across client failure.
However, in iSCSI, meta-data updates as well as related data may be
lost in case client fails prior to flushing the journal and data blocks
to the iSCSI server.
分享到:
相关推荐
C++与C#是两种广泛应用的编程语言,它们在很多方面都有显著的区别。本文将详细探讨这两种语言之间的主要差异,帮助开发者理解它们各自的特点。 1. 命名空间和成员访问: - C# 使用点号(.)来分隔命名空间、类以及...
Talk Show Differences Between China and America from the Perspective of the Form and Express.zip
The Differences Between Chinese and American Cultures from the Perspective of Politeness Utterances.zip
在IT领域,尤其是在企业软件开发中,理解不同的增强技术至关重要。本文将深入探讨EEWB(Enhancement Element Workbench)和BDT(Business Data Type)之间的差异,这两种工具都是用于SAP CRM系统中的对象扩展和定制...
英语与汉语的语言结构差异是一个复杂且广泛的话题,涉及语言学的多个层面。首先需要明确的是,任何两种语言之间的结构差异都是各自文化和思维模式差异的反映。这一点在英汉语言对比中尤为明显。...
标题:架构差异:IMX51与IMX53 描述:本文将深入解析由飞思卡尔半导体(Freescale Semiconductor)出品的IMX51与IMX53处理器之间的架构区别,这两款处理器均基于ARM Cortex-A8核心,旨在为多媒体应用提供高性能处理...
Employment-related differences between male and female school psychologists Psychulony in Ihe Schools Yollrme 31. July /994 EMPLOYMENT-RELATED DIFFERENCES BETWEEN MALE AND FEMALE SCHOOL ...
Differences between urban and rural school psychology: Training implications P \ i i h o l o ~ i in rhr Srhvolr I Y X I . l R . 191-196 DIFFERENCES BETWEEN URBAN AND RURAL SCHOOL PSYCHOLOGY: ...
### 最小二乘法与卡尔曼滤波的区别 在GPS导航系统和其他位置定位技术中,两种最常用的估计方法是最小二乘法(Least Squares, LS)和卡尔曼滤波(Kalman Filtering, KF)。这两种方法虽然表面上看起来有很大区别,但...
【标题】:初识SQL:SQL Server与Oracle之间的差异 【描述】:这份资料主要针对SQL初学者,尤其是从SQL Server环境转向Oracle的用户,详细介绍了两者在语法、功能和概念上的不同之处。 【标签】:SQL ...
S32K11x和S32K142微控制器(MCUs)是NXP半导体公司生产的两个系列的产品。虽然两者具有许多共通模块,但也存在一些显著差异,尤其是在核心架构、内存选项、外设配置、中断映射和软件迁移的兼容性等方面。...
Diagnostic differences between educationally handicapped and learning disabled students Pr~.rhulugv in the Schuul.r PPVT and MSCA with Autistic Children 469 1980. 17. 469-473 SCHOPLER, E. ...
Differences-between-LIN20-and-LIN21 (1)
Identification of statistically significant differences between scaled scores and psycholinguistic ages on the ITPA IDENTIFICATION OF STATISTICALIiY SIGNIFICANT DIFFERENCES BETWEEN SCALED SCORES ...
数据库系统概念课后习题答案
Philosophical differences between early childhood education and special education: Issues for school psychologists Psychology in Ihe Schools Volume 23, April 1986 PHILOSOPHICAL DIFFERENCES ...
《东西方饮食文化差异》 饮食,作为人类生活的基本需求之一,不仅是生理的满足,更是文化的体现。中国和西方在饮食习惯、食材选择、烹饪方式等方面存在着显著的文化差异,这些差异背后反映了各自的历史传统、哲学...
Significant differences between individual subtest scaled scores and average scaled scores on the Wechsler Preschool and Primary Scale of Intelligence-Revised Psychology in the Schools Volume 28. ...
Reliability and abnormality of differences between DTVP subtest scores 204 JAMES E. YSSELDYKE, DAVID A. SABATINO AND JOSEPH LAMANNA CONCLUSION A multitrait-multimethod matrix was used to ...