來源: http://blog.yesican.tw/?p=912
幾天突然發現記憶體完全被吃光,連swap也一樣,硬碟也發出存取的聲音,查出原因是rtorrent非常耗記憶體,雖然抓檔速度超快,但是關掉後也沒將記憶體釋放,對整個系統還是有那麼一點影響,所以還是先採取手動釋放記憶體,經過釋放記憶體後,整個系統感覺也較順了。


image

我使用的coLinux的核心版本為2.6.22.18,而Linux 在Kernels 2.6.16以後的版本對vm做了很大的調整,可透過/proc/sys/vm/drop_caches這個檔案來釋放記憶體。

huenlil 發表在 痞客邦 留言(1) 人氣()

來源: http://www.5look.net/blog/archives/156

Ref. :

● BroadcastReceiver | Android Developers
● BatteryManager | Android Developers

Battery information 的取得

 

huenlil 發表在 痞客邦 留言(1) 人氣()

前言:

Android 的 build system 已經大幅將build的過程簡單化、自動化,所以可以在執行 envsetup.sh 之後使用各種方便

的指令,以下列出目前支援的功能:

Invoke ". build/envsetup.sh" from your shell to add the following functions to your environment:

- croot:   Changes directory to the top of the tree.

huenlil 發表在 痞客邦 留言(0) 人氣()

引言:

ASHMEM = Android shared memory, 由Goolge 設計的一種記憶體分享、分配機制,主要用於 Google 設計給 Android 使用的 IPC Binder。

主要的driver 可在 aosp 的 kernel/mm/ashmem.c 找到實作,user space 的部份則是主要在 IMemory 裡面處理。

下面是從網路上收集的資訊:

 

huenlil 發表在 痞客邦 留言(0) 人氣()

來源: http://www.itqun.net/content-detail/194643_2.html

do_initcalls 的原理 

前言

   macro 定義__define_initcall(level,fn)對於內核的初始化很重要,它指示編譯器在編譯的時候,將一系列初始化函數的起始地址值按照一定的順序
   放在一個section中。在內核初始化階段,do_initcalls() 將按順序從該section中以函數指針的形式取出這些函數的起始地址,來依次完成相應

huenlil 發表在 痞客邦 留言(0) 人氣()

Android 官方的文件,可直接看 android/dalvik/docs/embedded-vm-control.html

 

Controlling the Embedded VM

Overview

The Dalvik VM supports a variety of command-line arguments (use adb shell dalvikvm -help to get a summary), but it's not possible to pass arbitrary arguments through the Android application runtime. It is, however, possible to affect the VM behavior through certain system properties.

For all of the features described below, you would set the system property with setprop, issuing a shell command on the device like this:

huenlil 發表在 痞客邦 留言(0) 人氣()

1.  Hash House A Go Go. 3628 5th Ave, San Diego, CA 92103週末早午餐常常大排長龍,份量大、有特色的美式酒吧。主餐$8~15

2.  Celadon. 地址:3671 5th Ave, San Diego, CA 92101. 裝潢和口味同樣有風味的泰國餐廳,紅咖哩的料理都很好吃。主餐$8~15

3.  Extraordinary Dessert. Hillcrest: 2929 Fifth Ave.San Diego , CA 92103. 619-294-2132. Downtown (小義大利): 1430 Union St., San Diego, CA 92101. 619-294-7001. 味覺以外,也讓人在視覺上心花怒放的甜點店。甜點$4~12

4.  The Original Pancake House. 3906 Convoy St, San Diego , CA 92111. 858-565-1740. 專門作鬆餅的早餐店,來這裡一定要嚐嚐他們的德國鬆餅。早餐$8~15

5.  Donovan’s Steak and Chop. 4340 La Jolla Village Dr., San Diego, CA 92122曾被評選為全美第一的高級牛排館。牛排$30~50

huenlil 發表在 痞客邦 留言(0) 人氣()

來源: http://blog.csdn.net/eroswang/archive/2008/04/23/2317771.aspx

在kernel中有很多__init,這個東東到底是何方神聖捏?且聽小生我一一道來。
下面是其定義:
file:/include/linux/init.h
 43 #define __init      __attribute__ ((__section__ (".init.text"))) __cold

huenlil 發表在 痞客邦 留言(0) 人氣()

來源: http://www.haoxiai.net/caozuoxitong/unixcaozuoxitong/89229.html

◎grep -- print lines matching a pattern (將符合樣式的該行列出) 

 ◎語法: grep [options]   PATTERN [FILE...]  

huenlil 發表在 痞客邦 留言(0) 人氣()

新功能:http://developer.android.com/sdk/android-2.2-highlights.html

SDK: http://developer.android.com/sdk/android-2.2.html

Demo: http://www.engadget.com/2010/05/20/android-2-2-froyo-beta-hands-on-flash-10-1-wifi-hotspots-an/

huenlil 發表在 痞客邦 留言(0) 人氣()