vfs: check userland buffers before reading them.
[haiku.git] / docs / userguide / zh_CN / preferences / virtualmemory.html
blobd8e13a2983c1aa355128a07f9bdb266913286350
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN" xml:lang="zh-CN">
4 <head>
5 <!--
7 * Copyright 2008, Haiku. All rights reserved.
8 * Distributed under the terms of the MIT License.
10 * Authors:
11 * Humdinger <humdingerb@gmail.com>
12 * Translators:
13 * Pengphei Han
15 -->
16 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
17 <meta http-equiv="Content-Style-Type" content="text/css" />
18 <meta name="robots" content="all" />
19 <title>虚拟内存</title>
20 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
21 <link rel="stylesheet" type="text/css" href="../../Haiku-doc.css" />
22 </head>
23 <body>
25 <div id="banner">
26 <div><span>用户指南</span></div>
27 </div>
29 <div class="nav">
30 <div class="inner">
31 <ul class="lang-menu">
32 <li class="now"><img src="../../images/flags/zh_CN.png" alt="" />  中文 [中文]</li>
33 <li><a href="../../ca/preferences/virtualmemory.html"><img src="../../images/flags/ca.png" alt="" />Català</a></li>
34 <li><a href="../../de/preferences/virtualmemory.html"><img src="../../images/flags/de.png" alt="" />Deutsch</a></li>
35 <li><a href="../../en/preferences/virtualmemory.html"><img src="../../images/flags/gb.png" alt="" />English</a></li>
36 <li><a href="../../es/preferences/virtualmemory.html"><img src="../../images/flags/es.png" alt="" />Español</a></li>
37 <li><a href="../../fr/preferences/virtualmemory.html"><img src="../../images/flags/fr.png" alt="" />Français</a></li>
38 <li><a href="../../it/preferences/virtualmemory.html"><img src="../../images/flags/it.png" alt="" />Italiano</a></li>
39 <li><a href="../../hu/preferences/virtualmemory.html"><img src="../../images/flags/hu.png" alt="" />Magyar</a></li>
40 <li><a href="../../pl/preferences/virtualmemory.html"><img src="../../images/flags/pl.png" alt="" />Polski</a></li>
41 <li><a href="../../pt_PT/preferences/virtualmemory.html"><img src="../../images/flags/pt_PT.png" alt="" />Português</a></li>
42 <li><a href="../../pt_BR/preferences/virtualmemory.html"><img src="../../images/flags/pt_BR.png" alt="" />Português (Brazil)</a></li>
43 <li><a href="../../ro/preferences/virtualmemory.html"><img src="../../images/flags/ro.png" alt="" />Română</a></li>
44 <li><a href="../../sk/preferences/virtualmemory.html"><img src="../../images/flags/sk.png" alt="" />Slovenčina</a></li>
45 <li><a href="../../fi/preferences/virtualmemory.html"><img src="../../images/flags/fi.png" alt="" />Suomi</a></li>
46 <li><a href="../../sv_SE/preferences/virtualmemory.html"><img src="../../images/flags/sv_SE.png" alt="" />Svenska</a></li>
47 <li><a href="../../ru/preferences/virtualmemory.html"><img src="../../images/flags/ru.png" alt="" />Русский</a></li>
48 <li><a href="../../uk/preferences/virtualmemory.html"><img src="../../images/flags/uk.png" alt="" />Українська</a></li>
49 <li><a href="../../jp/preferences/virtualmemory.html"><img src="../../images/flags/jp.png" alt="" />日本語</a></li>
50 </ul>
51 <span>
52  «  <a href="touchpad.html">触摸板</a> 
53 ::  <a href="../preferences.html" class="uplink">首选项</a>
54 </span></div>
55 </div>
57 <div id="content">
58 <div>
60 <h2><img src="../../images/prefs-images/virtualmemory-icon_64.png" alt="virtualmemory-icon_64.png" width="64" height="64" />虚拟内存</h2>
61 <table summary="quickinfo" border="0" cellspacing="0" cellpadding="2">
62 <tr><td>桌面栏:</td><td style="width:15px;"></td><td><span class="menu">首选项</span></td></tr>
63 <tr><td>位置:</td><td></td><td><span class="path">/boot/system/preferences/VirtualMemory</span></td></tr>
64 <tr><td>设置:</td><td></td><td><span class="path">~/config/settings/kernel/drivers/virtual_memory</span><br />
65 <span class="path">~/config/settings/VM_data</span> - 保存了面板的窗口位置。</td></tr>
66 </table>
67 <p>如果RAM可以用于更加智能的处理其他的任务,虚拟内存可以使系统将内存内容调换到硬盘。所以,即使您具有很大的RAM,提供虚拟内存也不是一个坏主意。</p>
68 <img src="../images/prefs-images/virtualmemory.png" alt="virtualmemory.png" />
69 <p>如果需要的话,您可以将设置其大小超过实际的物理内存。现在的硬盘容量都很大,将其设置为物理内存大小不会有任何问题。而且,如果磁盘剩余空间剩余很小,您也可以对其进行快速的调整。在这种情况下,您可以使用 <a href="../applications/diskusage.html">磁盘查看器</a> 找出耗掉您磁盘空间的原因。</p>
70 <p>通常,交换文件将会写入到您的启动分区。如果由于虚拟内存系统的交换文件而经常导致磁盘超荷,您可以尝试使用独立的硬盘用于交换文件。简单的使用同一硬盘的其他分区用于系统和数据将不会有任何效果。<br />
71 当然,升级您的内存将会是最有效的解决方法。</p>
72 <table summary="layout" border="0" cellpadding="2" cellspacing="0">
73 <tr><td><span class="button">默认</span></td><td> </td><td>重置所有设置未默认值。</td></tr>
74 <tr><td><span class="button">取消</span></td><td> </td><td>返回到启动虚拟内存首选项之前的设置状态。</td></tr>
75 </table>
77 </div>
78 </div>
80 <!--
81 <div class="nav">
82 <div class="inner"><span>
83  «  <a href="touchpad.html">触摸板</a> 
84 ::  <a href="../preferences.html" class="uplink">首选项</a>
85 </span></div>
86 </div>
87 -->
88 </body>
89 </html>