Android 台灣中文網

標題: GPU效能增強 [打印本頁]

作者: 吳兆禾    時間: 2014-9-26 21:20
標題: GPU效能增強
http://forum.xda-developers.com/showthread.php?t=1582243
這是我在網路上找到的有效嗎???
作者: 曉兒    時間: 2014-10-8 01:37
沒有效果,刷完後會無法開機~~~只能透過其他方式改善
作者: 吳兆禾    時間: 2014-10-9 21:14
曉兒 發表於 2014-10-8 01:37
沒有效果,刷完後會無法開機~~~只能透過其他方式改善

恩~~~謝謝

作者: 吳兆禾    時間: 2014-10-9 21:16
曉兒 發表於 2014-10-8 01:37
沒有效果,刷完後會無法開機~~~只能透過其他方式改善

這個zram壓縮內存有用嗎??


#! /bin/sh
### BEGIN INIT INFO
# Provides:          zramstuff
# Required-Start:    $local_fs
# Required-Stop:     $local_fs
# Default-Start:     2
# Default-Stop:      0 6
# Short-Description: Enable swap to compressed ram
# Description:       Enables swapping to compressed ram
### END INIT INFO

case "$1" in
  start)

       # get the number of CPUs
       num_cpus=$(grep -c processor /proc/cpuinfo)
       # if something goes wrong, assume we have 1
       [ "$num_cpus" != 0 ] || num_cpus=1

       # set decremented number of CPUs
       decr_num_cpus=$((num_cpus - 1))

       # get the amount of memory in the machine
       mem_total_kb=$(grep MemTotal /proc/meminfo | grep -E --only-matching "[[:digit:]]+")
       mem_total=$((mem_total_kb * 1024))

       # load dependency modules
       modprobe zram zram_num_devices=$num_cpus

       # initialize the devices
       for i in $(seq 0 $decr_num_cpus); do
         echo $((mem_total / num_cpus)) > /sys/block/zram$i/disksize
       done

       # Creating swap filesystems
       for i in $(seq 0 $decr_num_cpus); do
         mkswap /dev/zram$i
       done

       # Switch the swaps on
       for i in $(seq 0 $decr_num_cpus); do
         swapon -p 100 /dev/zram$i
       done

       ;;
  stop)
       # get the number of CPUs
       num_cpus=$(grep -c processor /proc/cpuinfo)

       # set decremented number of CPUs
       decr_num_cpus=$((num_cpus - 1))

       # Switching off swap
       for i in $(seq 0 $decr_num_cpus); do
         if [ "$(grep /dev/zram$i /proc/swaps)" != "" ]; then
           swapoff /dev/zram$i
         fi
       done

       rmmod zram
       ;;
esac




歡迎光臨 Android 台灣中文網 (https://apk.tw/) Powered by Discuz! X3.1