星期一的下午

星期一的下午,大部分人都在辦公室苦幹或釣魚時,連放五日(註:是月假期為2+3+5+5)的空姐做甚麼好呢?

去海怡工貿啦,夠少人呀,我兩個月沒有買過衣服啦。

結果,在Joyce Warehouse買了件便宜又合心意的Hugo Boss小外套,後幅

Linux NFS client kernel tunable settings

We had a serious (lack of) performance issue today with a Linux NFSclient machine, so I spent some time delving into the underdocumentedworld of kernel parameters that affect the Linux NFS client (not the NFSserver, which has better documented stuff).

(I am going to use sysctl(8) notation for kernel tunables.)

The major tunable is sunrpc.udp_slot_table_entries and/or tcp_slot_table_entries . These are the maximum number of outstandingNFS RPC requests


20070918 網摘 – 奶周斷正

Copycat

光害

猜猜猜

  • 我摘我猜宅 Quote: 我要做的,只是簡單地替某些文章做一些書摘…..

Services/Updates


How mmap(2) requires a unified buffer cache

In a previous entry I mentioned that Sun'saddition of mmap() basically forced their hand on having a unifiedbuffer cache. Today I feel like elaborating on that.

The problem with having mmap() and not a unified buffer cache is pagecoherence. If you have some programs using mmap() and some usingregular read() and write() , you will wind up with two copies ofpages, one mapped into process memory and one in the buffer cache.Because virtual memory and the buffer


擁抱

我喜歡情歌
老b也一樣
他有很多歌都走上抗爭現場
火熱地大伙一起唱
也有部份很適合在微風下聽
我曾經想把這歌錄音
發現失敗
還是聽他唱吧
受他影響我開始寫情歌
特別是這一首
放在toutube的版本我已聽了多次
友情推介歌曲:「擁抱」

小說.名字.寫作計劃


小說
我的小說"救命"剛剛完成了難度最大的情節
之後的十幾日
仍需加倍努力
但今次寫小說我是先寫出故事大網
然後列好人物關係表和人物小傳
接著寫成分場大網
最後才開始寫小說的正文
比起當年寫"撫摸"時僅有一篇故事概要

In praise of Python's Global Interpreter Lock

It's common to say bad things about the GIL (a round of GIL bashing happened recently, for example). I have acontrarian view: I think that the GIL is the right thing for Python.

Python needs some concurrency support, if only so that it can makeinherently blocking operations into non-blocking ones. At the sametime, the thread and shared memory based concurrent programmingmodel is a terrible one that programmers should avoid as much aspossible.

The GIL is good enough and simple enough to


Program Development in Java Preface

farseerfc.wordpress.com 導入

程序開發原理

——抽象、規格與面向對象設計

Barbara Liskov 、John Guttag 著

楊嘉晨 等譯

關於翻譯風格:

多年來閱讀計算機類的著作及譯作,感覺總體的困難在於一大堆沒有標準譯名的技術術語。由於通行於工業界和學術界的還

C++ Tricks 3.2 標號、goto,以及switch的實現

farseerfc.wordpress.com 導入

3.2 標號、goto,以及switch的實現

goto語句及標號(label)是最古老的C語言特性,也是最早被人們拋棄的語言特性之一。像彙編語言中的jmp指令一樣,goto語句可以跳轉到同一函數體中任何標號位置:

void f()

{int i


C++ Tricks 3.1 左值右值與常量性(lvalue,rvalue & constant)

farseerfc.wordpress.com 導入

3.1 左值右值與常量性(lvalue,rvalue & constant)

首先要搞清楚的是,什麼是左值,什麼是右值。這裏給出左值右值的定義:

1、左值是可以出現在等號(=)左邊的值,右值是隻能出現在等號右邊的值。

2、左值是可