2013년 10월 1일 화요일

SEAndroid 029 - LOW Memory Killder

SEAndroid와는 크게 관련이 없지만.

Android System을 다 알아야 결국 제대로된 룰을 만들 수 있으니까.



/android/kernel/drivers/staging/android/lowmemorykiller.c


289 static int lowmem_shrink(struct shrinker *s, struct shrink_control *sc)
    290 {
    403   if (selected) {
    404   lowmem_print(1, "send sigkill to %d (%s), adj %d, size %d(ofree %d %d, ma %d)\n",
    405   selected->pid, selected->comm,
    406   selected_oom_score_adj, selected_tasksize,
    407   other_free, other_file, min_score_adj);
    408   lowmem_deathpending_timeout = jiffies + HZ;
    409   send_sig(SIGKILL, selected, 0);

죽이는건 SIGKILL로 간단히...

댓글 없음:

댓글 쓰기

국정원의 댓글 공작을 지탄합니다.

UPBIT is a South Korean company, and people died of suicide cause of coin investment.

 UPBIT is a South Korean company, and people died of suicide cause of coin. The company helps the people who control the market price manipu...