Copycat
- 奶周抄襲事件.續集 偷相呀呢次!
光害
- 香港必須立法防止光汚染 Quote: 「什麼時候香港的夜空弄得這麽醜陋及俗氣」?
猜猜猜
- 我摘我猜宅 Quote: 我要做的,只是簡單地替某些文章做一些書摘…..
Services/Updates
- Jottit 非常簡單打做網站
- deligoo – Delicious
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
Copycat
光害
猜猜猜
Services/Updates
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
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
Barbara Liskov 、John Guttag 著
goto語句及標號(label)是最古老的C語言特性,也是最早被人們拋棄的語言特性之一。像彙編語言中的jmp指令一樣,goto語句可以跳轉到同一函數體中任何標號位置:
void f()
{int i
首先要搞清楚的是,什麼是左值,什麼是右值。這裏給出左值右值的定義:
1、左值是可以出現在等號(=)左邊的值,右值是隻能出現在等號右邊的值。
2、左值是可