How Linux handles virtual memory overcommit

Following up yesterday's entry on the general background of system virtual memory limits, here's howLinux deals with this issue. In its traditional way, Linux gives youthree options for what happens when a process tries to allocate somemore memory, controlled by the value of the vm.overcommit_memory sysctl:

  • the kernel gives you the memory unless it thinks you would clearlyovercommit the system (mode 0, the default, 'heuristic overcommit').

  • the kernel always gives you the memory (mode 1

東京鐵塔 — 老媽和我,有時還有老爸。

看罷此書已一陣子,但故事中的好些小片段,卻仍歷歷在目。

有趣的是,書中的老媽形象,已代入成我已離去的母親,故事中的男主角,又變成了吊兒郎當的我的化身。

每個人,都有心目中不同形象的母親,但我相信,每個人對


「我係讀Law架 !」

角逐區議員一職的前DJ梁安琪, 在傳媒面前斷言社會科學(Social Science) 不入流, 法律才是王道. 一句:"我唔會讀Social Science, 我係讀Law架!" 引來無數人恥笑, 也令我想起同是讀Law、但出色百倍的翁靜晶.

如果在香港要選出一名真正兼備


岩數

文明單位: 讀書網站
嘉賓: 麥志烈

認識麥志烈的時候他大一,是中大學生會的人。2004年初我回中大搞反英語化運動,麥志烈剛上莊,我記得是因為在報導反英語化的學生報號外上,他有一篇短文,我覺得寫得很不錯,中大

玩玩

前一陣子我因事無法寫作,除了不寫網誌,更把報章上的專欄停了一個月.

在這一個月內,我基本上只寫公事上的文件,完全停止寫作,那是我近年來停寫得最長的一次,而且我是故意的.以前,我會逞強,我會在最忙的日子照

Understanding the virtual memory overcommit issue

First, a definition: the committed address space is the total amountof virtual memory that the kernel might have to supply real memory pagesfor, either in swap space or in RAM. In other words, this is how muchmemory the kernel has committed to supplying to programs if they alldecide to touch all of the memory they've requested from the kernel.

(This is less than the total amount of virtual memory used in thesystem, since some things, like program code and memory mapped files,don


今天我讀前高官受審有感


我討厭所有罪惡的東西.

今日花了一小時讀報,都在了解前高官受審的新聞,法官在審他一個人,傳媒在報導他一個人的事,但事實上這個城市所有人都受審了,世人和歷史都不會理會前高官一個人犯了什麼罪,旁觀者只會看到

A thought about competition between Red Hat Enterprise and CentOS

Roughly speaking, I can think of two different market segments thatmight be attracted to Red Hat Enterprise Linux:

  • the people who need official support and certification, whether forthe base operating system or for some commercial package like Oracleor SAP.
  • the people who merely want to put a box in a corner and forget aboutit for three to five years.

Red Hat's pricing for RHEL is clearly pitched at the former market, notthe latter, quite possibly because Red Hat has determined that theycannot charge enough to


散功


很久之前我就希望到達這種“散功”的境界。

從幾年前開始,轉換了現在的環境,新鮮事物,龐大壓力,急速前進,過了一年又一年,終於都完了。很久之前我就想過要結束這樣的痛苦,但似乎有始有終地完成,會比中途離場來

Some notes on Solaris 10 U4 x86 as an iSCSI target

The latest release of Solaris 10 (S10U4 or 8/07 depending on how youlike to label it) has a built in iSCSI target implementation, and ZFSeven has integration with it so that it is easy to export space fromZFS pools. I've been poking it a bit, resulting in some things I wantto note down for my own later reference.

  • Solaris 10 iSCSI target stuff is handled with the iscsitadm command,which is helpfully only one letter away from the