特殊:Badtitle/NS100:UbuntuLTSP/FilesystemOptimize:修订间差异
小 创建新页面为 '{{From|https://help.ubuntu.com/community/UbuntuLTSP/FilesystemOptimize}} {{Languages|UbuntuHelp:UbuntuLTSP/FilesystemOptimize}} {|border="1" cellspacing="0" |This page is specif...' |
小无编辑摘要 |
||
第2行: | 第2行: | ||
{{Languages|UbuntuHelp:UbuntuLTSP/FilesystemOptimize}} | {{Languages|UbuntuHelp:UbuntuLTSP/FilesystemOptimize}} | ||
{|border="1" cellspacing="0" | {|border="1" cellspacing="0" | ||
|This page is specific to Ubuntu versions 8.04, 8.10 | |This page is specific to Ubuntu versions 8.04, 8.10, 9.10 | ||
|} | |} | ||
''If you find this information applicable to additional versions/releases, '''''please''''' edit this page and modify this header to reflect that. Please also include any necessary modifications for this information to apply to the additional versions.'' | ''If you find this information applicable to additional versions/releases, '''''please''''' edit this page and modify this header to reflect that. Please also include any necessary modifications for this information to apply to the additional versions.'' |
2010年5月20日 (四) 00:29的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/UbuntuLTSP/FilesystemOptimize }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/af | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|Afrikaans| [[::UbuntuLTSP/FilesystemOptimize/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/ar | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|العربية| [[::UbuntuLTSP/FilesystemOptimize/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/az | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|azərbaycanca| [[::UbuntuLTSP/FilesystemOptimize/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/bcc | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|جهلسری بلوچی| [[::UbuntuLTSP/FilesystemOptimize/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/bg | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|български| [[::UbuntuLTSP/FilesystemOptimize/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/br | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|brezhoneg| [[::UbuntuLTSP/FilesystemOptimize/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/ca | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|català| [[::UbuntuLTSP/FilesystemOptimize/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/cs | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|čeština| [[::UbuntuLTSP/FilesystemOptimize/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/de | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|Deutsch| [[::UbuntuLTSP/FilesystemOptimize/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/el | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|Ελληνικά| [[::UbuntuLTSP/FilesystemOptimize/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/es | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|español| [[::UbuntuLTSP/FilesystemOptimize/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/fa | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|فارسی| [[::UbuntuLTSP/FilesystemOptimize/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/fi | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|suomi| [[::UbuntuLTSP/FilesystemOptimize/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/fr | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|français| [[::UbuntuLTSP/FilesystemOptimize/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/gu | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|ગુજરાતી| [[::UbuntuLTSP/FilesystemOptimize/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/he | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|עברית| [[::UbuntuLTSP/FilesystemOptimize/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/hu | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|magyar| [[::UbuntuLTSP/FilesystemOptimize/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/id | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|Bahasa Indonesia| [[::UbuntuLTSP/FilesystemOptimize/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/it | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|italiano| [[::UbuntuLTSP/FilesystemOptimize/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/ja | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|日本語| [[::UbuntuLTSP/FilesystemOptimize/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/ko | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|한국어| [[::UbuntuLTSP/FilesystemOptimize/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/ksh | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|Ripoarisch| [[::UbuntuLTSP/FilesystemOptimize/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/mr | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|मराठी| [[::UbuntuLTSP/FilesystemOptimize/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/ms | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|Bahasa Melayu| [[::UbuntuLTSP/FilesystemOptimize/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/nl | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|Nederlands| [[::UbuntuLTSP/FilesystemOptimize/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/no | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|norsk| [[::UbuntuLTSP/FilesystemOptimize/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/oc | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|occitan| [[::UbuntuLTSP/FilesystemOptimize/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/pl | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|polski| [[::UbuntuLTSP/FilesystemOptimize/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/pt | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|português| [[::UbuntuLTSP/FilesystemOptimize/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/ro | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|română| [[::UbuntuLTSP/FilesystemOptimize/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/ru | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|русский| [[::UbuntuLTSP/FilesystemOptimize/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/si | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|සිංහල| [[::UbuntuLTSP/FilesystemOptimize/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/sq | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|shqip| [[::UbuntuLTSP/FilesystemOptimize/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/sr | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|српски / srpski| [[::UbuntuLTSP/FilesystemOptimize/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/sv | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|svenska| [[::UbuntuLTSP/FilesystemOptimize/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/th | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|ไทย| [[::UbuntuLTSP/FilesystemOptimize/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/tr | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|Türkçe| [[::UbuntuLTSP/FilesystemOptimize/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/vi | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|Tiếng Việt| [[::UbuntuLTSP/FilesystemOptimize/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/yue | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|粵語| [[::UbuntuLTSP/FilesystemOptimize/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/zh | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|中文| [[::UbuntuLTSP/FilesystemOptimize/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/zh-hans | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|中文(简体)| [[::UbuntuLTSP/FilesystemOptimize/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize | UbuntuHelp:UbuntuLTSP/FilesystemOptimize | {{#if: | :}}UbuntuLTSP/FilesystemOptimize}}/zh-hant | • {{#if: UbuntuHelp:UbuntuLTSP/FilesystemOptimize|中文(繁體)| [[::UbuntuLTSP/FilesystemOptimize/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:UbuntuLTSP/FilesystemOptimize|:UbuntuLTSP/FilesystemOptimize|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :UbuntuLTSP/FilesystemOptimize/zh | | {{#ifexist: UbuntuLTSP/FilesystemOptimize/zh | | {{#ifeq: {{#titleparts:UbuntuLTSP/FilesystemOptimize|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UbuntuLTSP/FilesystemOptimize|1|-1|}} | zh | | }}
This page is specific to Ubuntu versions 8.04, 8.10, 9.10 |
If you find this information applicable to additional versions/releases, please edit this page and modify this header to reflect that. Please also include any necessary modifications for this information to apply to the additional versions.
It is a good idea to optimize the filesystem for use by many simultaneous users. This page will try to give you some hints as to what you can do to optimize filesystem I/O using common practices.
ext3
Using the 'noatime' flag will greatly help in I/O. Simply edit your /etc/fstab file and append 'noatime' to the end of the filesystem options, and remount. Example /etc/fstab:
UUID=e84ae282-d80b-4db4-8b0a-6fx0314508eb / ext3 errors=remount-ro,acl,noatime 0 1
Notice the presence of noatime which is appended after acl. Now all we have to do is remount our filesystem (No need to reboot):
sudo mount -o remount /
Repeat the remount for all filesystems you append the noatime flag to.
Links
ext3 latency: http://lwn.net/Articles/328363/
IRC conversation regarding disk I/O
Lns Anyone using VMWare guests on Linux hosts (especially ltsp servers) that have tips to reduce disk i/o? It seems to be a *major* bottleneck for me, causing horrible hangs/delays during some operations (especially during the first ~10min startup of a win2k3 guest). jammcq Lns: yeah, get faster/more disks jammcq we've got a big setup with a SAN and vmware with an LTSP server as one of the guests, and it's working VERY well vagrantc Lns: be sure to use noatime jammcq I typically go with Raid 10, with 12 or more drives jammcq 'noatime' tells the kernel not to update the 'time last accessed' when a file is read jammcq and vmware is doing mostly reading Lns how about converting to ext4? Thoughts on stability in a production env? jammcq never used ext4, so no opinion vagrantc Lns: if you use mutt with mbox files, you *might* have issues seeing new mail. if you use popularity-contest, it won't be able to collect as much useful data. vagrantc Lns: a middle-ground compromise is relatime vagrantc Lns: but i'd just put your vmware disk images on a partition with noatime, for sure. vagrantc there's no sane reason to need that for disk images alkisg Lns: causing horrible hangs/delays during some operations (especially during the first ~10min startup of a win2k3 guest ==> that's usually the windows update service alkisg Installing a local WSUS server helps a lot