From: Munkyu Im Date: Mon, 12 Oct 2015 06:55:25 +0000 (+0900) Subject: install: remove enlarging shared memory size X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~211 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d4128c942a95d8a6c0a79b691b252b8483d023f;p=sdk%2Femulator%2Fqemu.git install: remove enlarging shared memory size Because it needs communication protocol to deliver the frame buffer data to swt skin, the frame buffer between swt skin and qemu was shared by shared memory. The size of the buffer needs big size.(the size is calculated by width * height * color depth) It caused performance issue. Also the buffer was useless since the protocol was integrated by QT. Change-Id: Ib593cdef178a9a154d6c5ad70ae20d3735829ffe Signed-off-by: Munkyu Im --- diff --git a/package/3.0-emulator-qemu-x86.install.macos-64 b/package/3.0-emulator-qemu-x86.install.macos-64 index 9d875ff12e..684b6ecc68 100755 --- a/package/3.0-emulator-qemu-x86.install.macos-64 +++ b/package/3.0-emulator-qemu-x86.install.macos-64 @@ -24,26 +24,6 @@ function remove_tmp_file { fi } -function remove_sysctl_file { - if [ -e "$SYSCTL_FILE" ] - then - echo "delete $SYSCTL_FILE" - rm -f "$SYSCTL_FILE" - fi -} - -function makesysctl { - echo 'make new sysctl.conf file to change' - - remove_sysctl_file; - - echo "kern.sysv.shmmax=83886080" >> "$SYSCTL_FILE" - echo "kern.sysv.shmmin=1" >> "$SYSCTL_FILE" - echo "kern.sysv.shmmni=128" >> "$SYSCTL_FILE" - echo "kern.sysv.shmseg=32" >> "$SYSCTL_FILE" - echo "kern.sysv.shmall=20480" >> "$SYSCTL_FILE" -} - function generate_tap_kext_cmd { echo "cp -pR \"${TIZEN_PLATFORM_ETC_PATH}/emulator-ifup.sh\" /etc/" >> "$TMP_FILE" echo "mkdir -p /Library/Extensions" >> $TMP_FILE @@ -58,25 +38,6 @@ function generate_tap_kext_cmd { echo "/sbin/kextload /Library/Extensions/tap.kext" >> "$TMP_FILE" } -function generate_sysctl_cmd { - if [ $OLD_SHMMAXSIZE -lt $NEW_SHMMAXSIZE ] - then - if [ -e "/etc/$SYSCTL_FILE" ] - then - makesysctl; - echo "mv -f /etc/sysctl.conf /etc/sysctl.conf.old" >> "$TMP_FILE" - echo "cp -f \"$SYSCTL_FILE\" /etc/." >> "$TMP_FILE" - echo "sysctl -w kern.sysv.shmmax=$NEW_SHMMAXSIZE" >> "$TMP_FILE" - echo 'echo "Changing /etc/sysctl.conf file. (The original file will be removed to sysctl.conf.old)"' >> "$TMP_FILE" - else - makesysctl; - echo "cp -f \"$SYSCTL_FILE\" /etc/." >> "$TMP_FILE" - echo "sysctl -w kern.sysv.shmmax=$NEW_SHMMAXSIZE" >> "$TMP_FILE" - echo 'echo "Make a new /etc/sysctl.conf file."' >> "$TMP_FILE" - fi - fi -} - function generate_sudoer_cmd { cat << 'EOF' >> $TMP_FILE FILE=/etc/sudoers @@ -146,7 +107,6 @@ function prepare { } function generate { - generate_sysctl_cmd; generate_tap_kext_cmd; generate_sudoer_cmd; } @@ -158,7 +118,6 @@ function execute { function cleanup { remove_tmp_file; - remove_sysctl_file; } prepare;