命令介绍:
Linux支持虚拟内存,虚拟内存是指使用磁盘当作RAM的扩展,这样可用的内存的大小就相应地增大了。内核会将暂时不用的内存块的内容写到硬盘上,这样一来,这块内存就可用于其它目的。当然,读写硬盘要比直接使用真实内存慢得多(要慢数千倍),所以程序就不会象一直在内存中运行的那样快。用作虚拟内存的硬盘部分被称为交换空间。Linux系统常常动不动就使用交换空间,以保持尽可能多的空闲物理内存。即使并没有什么事情需要内存,Linux也会交换出暂时不用的内存页面。这可以避免等待交换所需的时间:当磁盘闲着,就可以提...
分类:
其他好文 时间:
2014-08-15 01:34:07
阅读次数:
272
让32位的Centos系统支持4G以上内存,刚开始的时候有人说用64位的系统不都解决了吗?其实32位系统和64位系统各有各的用处。下面使用Centos-5.5-32位演示一、系统环境:VMware虚拟机系统:Centos-5.532位内存:4G32位系统没有破除限制,系统只能识别都3G的内存#free-m#uname-a//..
分类:
系统相关 时间:
2014-08-14 21:01:29
阅读次数:
249
One classic method for composing secret messages is called a square code. The spaces are removed from the english textand the characters are written i...
分类:
其他好文 时间:
2014-08-14 20:03:09
阅读次数:
276
清理前:[root@ap1~]#free-mtotalusedfreesharedbufferscachedMem:7972772224902562597-/+buffers/cache:48683104Swap:818918188清理后:[root@apr1~]#sync[root@ap1~]#echo1>/proc/sys/vm/drop_caches[root@ap1~]#echo2>/proc/sys/vm/drop_caches[root@ap1~]#echo3>/..
分类:
其他好文 时间:
2014-08-14 17:07:19
阅读次数:
253
原题:
Implement int sqrt(int x).
Compute and return the square root of x.
==============================以下为引用====================================
牛顿迭代法
为了方便理解,就先以本题为例:
计算x2 = n的解,令f(...
分类:
其他好文 时间:
2014-08-14 16:51:18
阅读次数:
263
Red and BlackTime Limit:1000MSMemory Limit:30000KTotal Submissions:22409Accepted:12100DescriptionThere is a rectangular room, covered with square tile...
分类:
其他好文 时间:
2014-08-13 22:04:17
阅读次数:
266
1 /*-----------------------------------------------------------------------*/ 2 /* Get Number of Free Clusters ...
分类:
其他好文 时间:
2014-08-13 18:23:47
阅读次数:
899
The square chestSophia pressed the button in front of her, slamming her fist against it. The door rumbled and appeared to do nothing.“Oh man, that’s n...
分类:
其他好文 时间:
2014-08-13 18:13:26
阅读次数:
274
Problem Description
FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location is labelled (p,q) where 0 <= p < n and 0 <= q < n. At e...
分类:
其他好文 时间:
2014-08-13 14:56:46
阅读次数:
236