You can find it in init.rc:

# Define the oom_adj values for the classes of processes that can be
# killed by the kernel.  These are used in ActivityManagerService.
    setprop ro.FOREGROUND_APP_ADJ 0
    setprop ro.VISIBLE_APP_ADJ 1
    setprop ro.SECONDARY_SERVER_ADJ 2     
    setprop ro.BACKUP_APP_ADJ 2  
    setprop ro.HOME_APP_ADJ 4   
    setprop ro.HIDDEN_APP_MIN_ADJ 7
    setprop ro.CONTENT_PROVIDER_ADJ 14
    setprop ro.EMPTY_APP_ADJ 15   
                                  
# Define the memory thresholds at which the above process classes will
# be killed.  These numbers are in pages (4k).
    setprop ro.FOREGROUND_APP_MEM 1536
    setprop ro.VISIBLE_APP_MEM 2048                     
    setprop ro.SECONDARY_SERVER_MEM 4096
    setprop ro.BACKUP_APP_MEM 4096
    setprop ro.HOME_APP_MEM 4096      
    setprop ro.HIDDEN_APP_MEM 5120          
    setprop ro.CONTENT_PROVIDER_MEM 5632
    setprop ro.EMPTY_APP_MEM 6144

And the use of these value is in ActivityManagerService.java

在 2012年2月13日星期一UTC+8下午3时09分42秒,Sean kim写道:
>
> I'm curious about how google select the value of minfree. 
>
> I checked Nesus-S(GB) minfree value. It has below value. 
>
> *adj: 0,1,2,4,7,15 
> *minfree: 3072,4096,5120,7168,8192,9216 
>
> I think that the first value of minfree 3072(8M) is dependency of all 
> process's cached memory size. 
>
> but I don't know How google get the first value. 
>
> even I modifed procrank.c to calculate every process's cached size to 
> find the first minfree value 
>
> Is there any rule or method?

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

Reply via email to