1992. 06. 09.
SUBJECT: SunView에서 Window 갯수를 늘리는 방법
STATUS OF THIS MEMO
이 메모는 SunView에서 Window 갯수를 늘리는 방법을 적어 놓았다.
DESCRIPTION
1. Window 갯수
☞ Kernel에서 128개 window support
sun0# cat /sys/sun4c/conf/GENERIC
#
# The next few are for SunWindows support, needed to run SunView 1.
#
pseudo-device win128 # window devices, allow 128 windows
pseudo-device dtop4 # desktops (screens), allow 4
pseudo-device ms # mouse support
☞ /dev/win0 - /dev/win127
sun0# cd /dev
sun0# MAKEDEV win0
sun0# MAKEDEV win1
sun0# MAKEDEV win2
sun0# MAKEDEV win3
☞ memory & swap size도 관계있음
1) memory size는 늘려주면 되고
2) swap size
. shell에서 늘려주는 방법
sun0# df
Filesystem kbytes used avail capacity Mounted on
/dev/sd2a 7688 5040 1879 73% /
/dev/sd2g 183198 158939 5939 96% /usr
/dev/sd2h 383023 322978 21742 94% /pkg1
/dev/sd0h 95421 67340 18538 78% /pkg2
/dev/sd1c 95421 73394 12484 85% /alis
각 filesystem중에서 가장 많이 남아있는 filesystem을 select.
sun0# cd /pkg1
sun0# mkfile 10M swap
sun0# swapon /pkg1/swap
/pkg1 filesystem의 21.7MB중 10MB를 swap에 add.
sun0# pstat -T 로 확인
.booting時 늘려주는 방법
sun0# vi /etc/fstab
/dev/sd2a / 4.2 rw 1 1
/dev/sd2g /usr 4.2 rw 1 2
/dev/sd2h /pkg1 4.2 rw 1 3
/dev/sd0h /pkg2 4.2 rw 1 4
/dev/sd1c /alis 4.2 rw 1 5
/pkg1/swap swap swap rw 0 0 # 추가
☞ sunview에서 여러개의 suntool(cmdtool)을 띄어 놓고 각 window에서
printenv를 수행하면 WINDOW_ME라는 target이 있는데 각 window에서
보면 /dev/win32 /dev/win35, 즉 하나의 pty가 win을 3개씩 차지한다.
해서 128개의 win은 max 42개의 pty를 생성할수 있다.
Revision History
Created on June 09, 1992.