install: remove enlarging shared memory size
authorMunkyu Im <munkyu.im@samsung.com>
Mon, 12 Oct 2015 06:55:25 +0000 (15:55 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 20 Oct 2015 05:53:23 +0000 (14:53 +0900)
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 <munkyu.im@samsung.com>
package/3.0-emulator-qemu-x86.install.macos-64

index 9d875ff..684b6ec 100755 (executable)
@@ -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;