<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://tutorials.sdfcn.org/index.php?action=history&amp;feed=atom&amp;title=SDF_%E5%A4%9A%E7%94%A8%E6%88%B7%E7%8E%AF%E5%A2%83%E4%B8%AD%E7%9A%84%E4%B8%AA%E4%BA%BA%E8%B4%A3%E4%BB%BB</id>
	<title>SDF 多用户环境中的个人责任 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://tutorials.sdfcn.org/index.php?action=history&amp;feed=atom&amp;title=SDF_%E5%A4%9A%E7%94%A8%E6%88%B7%E7%8E%AF%E5%A2%83%E4%B8%AD%E7%9A%84%E4%B8%AA%E4%BA%BA%E8%B4%A3%E4%BB%BB"/>
	<link rel="alternate" type="text/html" href="https://tutorials.sdfcn.org/index.php?title=SDF_%E5%A4%9A%E7%94%A8%E6%88%B7%E7%8E%AF%E5%A2%83%E4%B8%AD%E7%9A%84%E4%B8%AA%E4%BA%BA%E8%B4%A3%E4%BB%BB&amp;action=history"/>
	<updated>2026-06-06T05:13:45Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://tutorials.sdfcn.org/index.php?title=SDF_%E5%A4%9A%E7%94%A8%E6%88%B7%E7%8E%AF%E5%A2%83%E4%B8%AD%E7%9A%84%E4%B8%AA%E4%BA%BA%E8%B4%A3%E4%BB%BB&amp;diff=100&amp;oldid=prev</id>
		<title>2025年8月19日 (二) 08:35 Gao66</title>
		<link rel="alternate" type="text/html" href="https://tutorials.sdfcn.org/index.php?title=SDF_%E5%A4%9A%E7%94%A8%E6%88%B7%E7%8E%AF%E5%A2%83%E4%B8%AD%E7%9A%84%E4%B8%AA%E4%BA%BA%E8%B4%A3%E4%BB%BB&amp;diff=100&amp;oldid=prev"/>
		<updated>2025-08-19T08:35:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2025年8月19日 (二) 08:35的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l30&quot;&gt;第30行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第30行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ulimit -t 1000&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ulimit -t 1000&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;请注意，一旦设置，如果不杀死受限进程并启动一个新进程，就无法增加限制。如果直接从 shell 运行此命令，则需要退出 shell 并重新登录才能重置。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;请注意，一旦设置，如果不杀死受限进程并启动一个新进程，就无法增加限制。如果直接从 shell 运行此命令，则需要退出 shell 并重新登录才能重置。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&amp;lt;small&amp;gt;$Id: multiuser-responsibility.html,v 1.5 2020/02/28 02:10:14 cmccabe Exp $&amp;lt;/small&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&amp;lt;small&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&lt;/ins&gt;$Id: multiuser-responsibility.html,v 1.5 2020/02/28 02:10:14 cmccabe Exp $&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&lt;/ins&gt;&amp;lt;/small&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key sdfcnwiki:diff:1.41:old-96:rev-100:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Gao66</name></author>
	</entry>
	<entry>
		<id>https://tutorials.sdfcn.org/index.php?title=SDF_%E5%A4%9A%E7%94%A8%E6%88%B7%E7%8E%AF%E5%A2%83%E4%B8%AD%E7%9A%84%E4%B8%AA%E4%BA%BA%E8%B4%A3%E4%BB%BB&amp;diff=96&amp;oldid=prev</id>
		<title>2025年8月19日 (二) 08:31 Gao66</title>
		<link rel="alternate" type="text/html" href="https://tutorials.sdfcn.org/index.php?title=SDF_%E5%A4%9A%E7%94%A8%E6%88%B7%E7%8E%AF%E5%A2%83%E4%B8%AD%E7%9A%84%E4%B8%AA%E4%BA%BA%E8%B4%A3%E4%BB%BB&amp;diff=96&amp;oldid=prev"/>
		<updated>2025-08-19T08:31:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2025年8月19日 (二) 08:31的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l30&quot;&gt;第30行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第30行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ulimit -t 1000&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ulimit -t 1000&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;请注意，一旦设置，如果不杀死受限进程并启动一个新进程，就无法增加限制。如果直接从 shell 运行此命令，则需要退出 shell 并重新登录才能重置。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;请注意，一旦设置，如果不杀死受限进程并启动一个新进程，就无法增加限制。如果直接从 shell 运行此命令，则需要退出 shell 并重新登录才能重置。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;----&amp;lt;small&amp;gt;$Id: multiuser-responsibility.html,v 1.5 2020/02/28 02:10:14 cmccabe Exp $&amp;lt;/small&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key sdfcnwiki:diff:1.41:old-71:rev-96:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Gao66</name></author>
	</entry>
	<entry>
		<id>https://tutorials.sdfcn.org/index.php?title=SDF_%E5%A4%9A%E7%94%A8%E6%88%B7%E7%8E%AF%E5%A2%83%E4%B8%AD%E7%9A%84%E4%B8%AA%E4%BA%BA%E8%B4%A3%E4%BB%BB&amp;diff=71&amp;oldid=prev</id>
		<title>Gao66：​创建页面，内容为“由于 SDF 的使命是支持公众教育、丰富文化生活、科学研究和娱乐活动的发展，因此我们鼓励您在使用您的会员级别所提供的众多资源时发挥创造性并大胆创新。在开展项目的同时，请注意资源的使用情况，以免对他人使用本系统造成负面影响。代码中的 Bug 或其他错误会时不时地吞噬 CPU，这样的错误是学习过程的一部分，但有意识地过度使用系统资…”</title>
		<link rel="alternate" type="text/html" href="https://tutorials.sdfcn.org/index.php?title=SDF_%E5%A4%9A%E7%94%A8%E6%88%B7%E7%8E%AF%E5%A2%83%E4%B8%AD%E7%9A%84%E4%B8%AA%E4%BA%BA%E8%B4%A3%E4%BB%BB&amp;diff=71&amp;oldid=prev"/>
		<updated>2023-08-20T01:07:41Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“由于 SDF 的使命是支持公众教育、丰富文化生活、科学研究和娱乐活动的发展，因此我们鼓励您在使用您的会员级别所提供的众多资源时发挥创造性并大胆创新。在开展项目的同时，请注意资源的使用情况，以免对他人使用本系统造成负面影响。代码中的 Bug 或其他错误会时不时地吞噬 CPU，这样的错误是学习过程的一部分，但有意识地过度使用系统资…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;由于 SDF 的使命是支持公众教育、丰富文化生活、科学研究和娱乐活动的发展，因此我们鼓励您在使用您的会员级别所提供的众多资源时发挥创造性并大胆创新。在开展项目的同时，请注意资源的使用情况，以免对他人使用本系统造成负面影响。代码中的 Bug 或其他错误会时不时地吞噬 CPU，这样的错误是学习过程的一部分，但有意识地过度使用系统资源很可能会导致您的进程被杀死，甚至可能导致您的账户被锁定。幸运的是，如果你不小心超出了系统资源的合理份额，会有其他用户提醒你。&lt;br /&gt;
&lt;br /&gt;
如果你想了解导致系统运行缓慢的原因，或者只是想监控自己的系统资源使用情况，&amp;quot;top&amp;quot;命令是一个很好的工具。在网上快速搜索 &amp;quot;unix 进程监控工具&amp;quot;，还能找到很多其他工具。&lt;br /&gt;
&lt;br /&gt;
如果您发现有人使用系统导致系统瘫痪，请联系用户并告知他们。电子邮件显然是联系他们的一种方式，或者尝试查看他们的 SDF 网站或 gopher 网站，了解其他联系信息。如果联系不上，请在 [[bboard]] 上发帖描述问题，其他人也许能提供帮助。&lt;br /&gt;
&lt;br /&gt;
除了简单地监控资源使用情况外，您还可以设置限制，防止错误程序消耗过多资源。这对于系统资源使用限制较高的 MetaARPA 成员尤为重要。&lt;br /&gt;
&lt;br /&gt;
大多数 shell 都有 &amp;#039;&amp;#039;&amp;#039;ulimit&amp;#039;&amp;#039;&amp;#039; 命令，可以用来查看或设置限制。参见 &amp;lt;code&amp;gt;man 3 ulimit&amp;lt;/code&amp;gt; 或（在某些 shell 中）&amp;lt;code&amp;gt;ulimit --help&amp;lt;/code&amp;gt;。该 shell 命令调用 C 运行库的 ulimit() 函数，而 ulimit() 本身又调用 Unix 系统的 getrlimit() 和 setrlimit() 函数。&lt;br /&gt;
&lt;br /&gt;
使用 &amp;lt;code&amp;gt;ulimit -a&amp;lt;/code&amp;gt; 将显示当前的所有限制：&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
user@fnord.sdf.org $ ulimit -a&lt;br /&gt;
core file size          (blocks, -c) 0&lt;br /&gt;
data seg size           (kbytes, -d) unlimited&lt;br /&gt;
scheduling priority             (-e) 0&lt;br /&gt;
file size               (blocks, -f) unlimited&lt;br /&gt;
pending signals                 (-i) 80133&lt;br /&gt;
max locked memory       (kbytes, -l) 65536&lt;br /&gt;
max memory size         (kbytes, -m) unlimited&lt;br /&gt;
open files                      (-n) 1024&lt;br /&gt;
pipe size            (512 bytes, -p) 8&lt;br /&gt;
POSIX message queues     (bytes, -q) 819200&lt;br /&gt;
real-time priority              (-r) 0&lt;br /&gt;
stack size              (kbytes, -s) 8192&lt;br /&gt;
cpu time               (seconds, -t) unlimited&lt;br /&gt;
max user processes              (-u) 80133&lt;br /&gt;
virtual memory          (kbytes, -v) unlimited&lt;br /&gt;
file locks                      (-x) unlimited&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;从显示屏上可以看到，用户的 cpu 时间是无限的。要为 cpu 时间添加 1000 秒限制，请执行以下命令：&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
ulimit -t 1000&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;请注意，一旦设置，如果不杀死受限进程并启动一个新进程，就无法增加限制。如果直接从 shell 运行此命令，则需要退出 shell 并重新登录才能重置。&lt;/div&gt;</summary>
		<author><name>Gao66</name></author>
	</entry>
</feed>