3 | | * SC'08 |
| 5 | == Event: SC'08 == |
| 6 | |
| 7 | * [http://www.weather.com/weather/tenday/USTX0057?from=36hr_fcst10DayLink_undeclared Austin 近十日天氣預報] |
| 8 | * 展場無線網路測試: |
| 9 | {{{ |
| 10 | C:\>tracert 140.110.1.1 |
| 11 | |
| 12 | Tracing route to 140.110.1.1 over a maximum of 30 hops |
| 13 | |
| 14 | 1 2 ms <1 ms <1 ms conf-rtr-south-vlan203.sc08.org [140.221.224.3] |
| 15 | 2 3 ms 1 ms 1 ms core-rtr-1-conf-rtr-south.sc08.org [140.221.251.114] |
| 16 | 3 34 ms 33 ms 33 ms nlr-la-rtr-core-rtr-1.sc08.org [140.221.251.134] |
| 17 | 4 60 ms 58 ms 59 ms seat-losa-49.layer3.nlr.net [216.24.186.13] |
| 18 | 5 62 ms 60 ms 64 ms twaren-1-is-jmb-776.lsanca.pacificwave.net [207.231.241.133] |
| 19 | 6 294 ms 313 ms 313 ms la-76-hc-gsr.twaren.net [211.79.48.229] |
| 20 | 7 250 ms 313 ms 312 ms hc-76-v20.twaren.net [211.79.60.113] |
| 21 | 8 248 ms 313 ms 313 ms 140.110.1.1 |
| 22 | |
| 23 | Trace complete. |
| 24 | My traceroute [v0.73] |
| 25 | intrepid (0.0.0.0) Sun Nov 16 00:54:03 2008 |
| 26 | Keys: Help Display mode Restart statistics Order of fields quit |
| 27 | Packets Pings |
| 28 | Host Loss% Snt Last Avg Best Wrst StDev |
| 29 | 1. 172.21.253.2 0.0% 259 0.3 0.3 0.2 6.1 0.4 |
| 30 | 2. 140.110.1.1 0.0% 259 226.3 279.1 221.1 1018. 61.5 |
| 31 | |
| 32 | jazz@intrepid:~$ sudo iperf -c 140.110.240.192 -u |
| 33 | ------------------------------------------------------------ |
| 34 | Client connecting to 140.110.240.192, UDP port 5001 |
| 35 | Sending 1470 byte datagrams |
| 36 | UDP buffer size: 122 KByte (default) |
| 37 | ------------------------------------------------------------ |
| 38 | [ 3] local 172.21.253.152 port 33083 connected with 140.110.240.192 port 5001 |
| 39 | [ ID] Interval Transfer Bandwidth |
| 40 | [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec |
| 41 | [ 3] Sent 892 datagrams |
| 42 | [ 3] Server Report: |
| 43 | [ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams |
| 44 | [ 3] 0.0- 9.9 sec 1.25 MBytes 1.05 Mbits/sec 2.526 ms 0/ 891 (0%) |
| 45 | [ 3] 0.0- 9.9 sec 1 datagrams received out-of-order |
| 46 | |
| 47 | jazz@intrepid:~$ sudo iperf -c 140.110.240.192 -u -w 10M |
| 48 | ------------------------------------------------------------ |
| 49 | Client connecting to 140.110.240.192, UDP port 5001 |
| 50 | Sending 1470 byte datagrams |
| 51 | UDP buffer size: 244 KByte (WARNING: requested 10.0 MByte) |
| 52 | ------------------------------------------------------------ |
| 53 | [ 3] local 172.21.253.152 port 56643 connected with 140.110.240.192 port 5001 |
| 54 | [ ID] Interval Transfer Bandwidth |
| 55 | [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec |
| 56 | [ 3] Sent 893 datagrams |
| 57 | [ 3] Server Report: |
| 58 | [ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams |
| 59 | [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec 0.670 ms 0/ 893 (0%) |
| 60 | }}} |
| 61 | * 展場光纖網路測試: |
| 62 | {{{ |
| 63 | C:\>tracert 140.110.1.1 |
| 64 | |
| 65 | Tracing route to 140.110.1.1 over a maximum of 30 hops |
| 66 | |
| 67 | 1 <1 ms <1 ms <1 ms A-rtr.1851.sc08.org [140.221.141.1] |
| 68 | 2 32 ms 1 ms <1 ms core-rtr-1-2-dnoc-rtr-2046-2.sc08.org [140.221.251.69] |
| 69 | 3 32 ms 32 ms 32 ms nlr-la-rtr-core-rtr-1.sc08.org [140.221.251.134] |
| 70 | 4 58 ms 57 ms 57 ms seat-losa-49.layer3.nlr.net [216.24.186.13] |
| 71 | 5 60 ms 59 ms 59 ms twaren-1-is-jmb-776.lsanca.pacificwave.net [207.231.241.133] |
| 72 | 6 224 ms 225 ms 224 ms la-76-tp-gsr.twaren.net [211.79.48.209] |
| 73 | 7 226 ms 226 ms 226 ms hc-76-v20.twaren.net [211.79.60.113] |
| 74 | 8 227 ms 227 ms 227 ms 140.110.1.1 |
| 75 | |
| 76 | Trace complete. |
| 77 | |
| 78 | jazz@intrepid:~$ sudo mtr 140.110.1.1 |
| 79 | |
| 80 | My traceroute [v0.73] |
| 81 | intrepid (0.0.0.0) Sun Nov 16 00:44:24 2008 |
| 82 | Resolver: Received error response 5. (refused by name server)elds quit |
| 83 | Packets Pings |
| 84 | Host Loss% Snt Last Avg Best Wrst StDev |
| 85 | 1. 172.21.253.2 0.0% 616 0.3 0.2 0.2 1.3 0.1 |
| 86 | 2. 140.110.1.1 0.0% 616 228.1 228.9 227.6 410.2 12.3 |
| 87 | |
| 88 | jazz@intrepid:~$ sudo iperf -c 140.110.240.192 -u |
| 89 | ------------------------------------------------------------ |
| 90 | Client connecting to 140.110.240.192, UDP port 5001 |
| 91 | Sending 1470 byte datagrams |
| 92 | UDP buffer size: 122 KByte (default) |
| 93 | ------------------------------------------------------------ |
| 94 | [ 3] local 172.21.253.152 port 50095 connected with 140.110.240.192 port 5001 |
| 95 | [ ID] Interval Transfer Bandwidth |
| 96 | [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec |
| 97 | [ 3] Sent 893 datagrams |
| 98 | [ 3] Server Report: |
| 99 | [ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams |
| 100 | [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec 1.975 ms 0/ 892 (0%) |
| 101 | [ 3] 0.0-10.0 sec 1 datagrams received out-of-order |
| 102 | |
| 103 | jazz@intrepid:~$ sudo iperf -c 140.110.240.192 -u -w 10M |
| 104 | ------------------------------------------------------------ |
| 105 | Client connecting to 140.110.240.192, UDP port 5001 |
| 106 | Sending 1470 byte datagrams |
| 107 | UDP buffer size: 244 KByte (WARNING: requested 10.0 MByte) |
| 108 | ------------------------------------------------------------ |
| 109 | [ 3] local 172.21.253.152 port 53022 connected with 140.110.240.192 port 5001 |
| 110 | [ ID] Interval Transfer Bandwidth |
| 111 | [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec |
| 112 | [ 3] Sent 893 datagrams |
| 113 | [ 3] Server Report: |
| 114 | [ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams |
| 115 | [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec 1.827 ms 0/ 893 (0%) |
| 116 | }}} |
| 117 | |
| 118 | == BUGFIX: jfbterm == |
| 119 | |
| 120 | * [DRBL] jfbterm Bug |
| 121 | * https://bugs.launchpad.net/ubuntu/+source/jfbterm/+bug/253163 |
| 122 | * http://launchpadlibrarian.net/16414131/jfbterm-segfault.txt |
| 123 | * http://launchpadlibrarian.net/16414135/jfbterm-segfault-strace.txt |
| 124 | * [測試] |
| 125 | * 安裝 [http://ftp.twaren.net/Linux/Ubuntu/ubuntu-cd/8.10/ubuntu-8.10-server-amd64.iso Ubuntu 8.10 Server AMD64] |
| 126 | * |
| 127 | {{{ |
| 128 | root@intrepid:~# apt-get update |
| 129 | root@intrepid:~# apt-get upgrade |
| 130 | root@intrepid:~# reboot |
| 131 | root@intrepid:~# uname -a |
| 132 | Linux intrepid 2.6.27-7-server #1 SMP Tue Nov 4 20:16:57 UTC 2008 x86_64 GNU/Linux |
| 133 | root@intrepid:~# apt-get install jfbterm v86d |
| 134 | root@intrepid:~# reboot |
| 135 | root@intrepid:~# dpkg -S chvt |
| 136 | kbd: /usr/share/man/man1/chvt.1.gz |
| 137 | kbd: /bin/chvt |
| 138 | root@intrepid:~# chvt 1 |
| 139 | root@intrepid:~# rmmod uvesafb |
| 140 | ERROR: Module uvesafb does not exist in /proc/modules |
| 141 | root@intrepid:~# modprobe uvesafb mode_option=1024x768 |
| 142 | root@intrepid:~# screen |
| 143 | root@intrepid:~# jfbterm -e ls |
| 144 | ... 略 ... |
| 145 | color 15 : ffff, ffff |
| 146 | cannot mmap(mmio) : Invalid argument |
| 147 | Segmentation fault |
| 148 | }}} |
| 149 | * [備註] 如果沒有裝 v86d 的話,當執行 modprobe uvesafb 時會在 dmesg 看到以下資訊 |
| 150 | {{{ |
| 151 | [ 703.839376] uvesafb: failed to execute /sbin/v86d |
| 152 | [ 703.840224] uvesafb: make sure that the v86d helper is installed and executable |
| 153 | [ 703.841494] uvesafb: Getting VBE info block failed (eax=0x4f00, err=-2) |
| 154 | [ 703.842307] uvesafb: vbe_init() failed with -22 |
| 155 | [ 703.843019] uvesafb: probe of uvesafb.0 failed with error -22 |
| 156 | }}} |
| 157 | * [備註] 如果有裝 v86d 的話,當執行 modprobe uvesafb 時會在 dmesg 看到以下資訊 |
| 158 | {{{ |
| 159 | [ 268.848377] uvesafb: VMware, IncVMware virtual machine2.0, VMware virtual machine2.0, 2.0, OEM: V M ware, Inc. VBE support 2.0VMware, IncVMware virtual machine2.0, VBE v2.0 |
| 160 | [ 268.884099] uvesafb: no monitor limits have been set, default refresh rate will be used |
| 161 | [ 268.885202] uvesafb: VBE state buffer size cannot be determined (eax=0x0, err=0) |
| 162 | [ 268.885265] uvesafb: scrolling: redraw |
| 163 | [ 268.896617] mtrr: your processor doesn't support write-combining |
| 164 | [ 268.909303] Console: switching to colour frame buffer device 128x48 |
| 165 | [ 269.938085] uvesafb: framebuffer at 0xf0000000, mapped to 0xffffc20000180000, using 16384k, total 16384k |
| 166 | [ 269.938101] fb0: VESA VGA frame buffer device |
| 167 | }}} |
| 168 | * |
| 169 | {{{ |
| 170 | root@intrepid:~# modinfo uvesafb |
| 171 | filename: /lib/modules/2.6.27-7-server/kernel/drivers/video/uvesafb.ko |
| 172 | description: Framebuffer driver for VBE2.0+ compliant graphics boards |
| 173 | author: Michal Januszewski <spock@gentoo.org> |
| 174 | license: GPL |
| 175 | srcversion: 21EDEFDED06E0673208A0D5 |
| 176 | depends: |
| 177 | vermagic: 2.6.27-7-server SMP mod_unload modversions |
| 178 | parm: scroll:Scrolling mode, set to 'redraw', 'ypan', or 'ywrap' (scroll) |
| 179 | parm: vgapal:Set palette using VGA registers (invbool) |
| 180 | parm: pmipal:Set palette using PMI calls (bool) |
| 181 | parm: mtrr:Memory Type Range Registers setting. Use 0 to disable. (uint) |
| 182 | parm: blank:Enable hardware blanking (bool) |
| 183 | parm: nocrtc:Ignore CRTC timings when setting modes (bool) |
| 184 | parm: noedid:Ignore EDID-provided monitor limits when setting modes (bool) |
| 185 | parm: vram_remap:Set amount of video memory to be used [MiB] (uint) |
| 186 | parm: vram_total:Set total amount of video memoery [MiB] (uint) |
| 187 | parm: maxclk:Maximum pixelclock [MHz], overrides EDID data (ushort) |
| 188 | parm: maxhf:Maximum horizontal frequency [kHz], overrides EDID data (ushort) |
| 189 | parm: maxvf:Maximum vertical frequency [Hz], overrides EDID data (ushort) |
| 190 | parm: mode_option:Specify initial video mode as "<xres>x<yres>[-<bpp>][@<refresh>]" (charp) |
| 191 | parm: vbemode:VBE mode number to set, overrides the 'mode' option (ushort) |
| 192 | parm: v86d:Path to the v86d userspace helper. (string) |
| 193 | |
| 194 | root@intrepid:~# LANG=C apt-cache policy v86d |
| 195 | v86d: |
| 196 | Installed: 0.1.5-1ubuntu2 |
| 197 | Candidate: 0.1.5-1ubuntu2 |
| 198 | Version table: |
| 199 | *** 0.1.5-1ubuntu2 0 |
| 200 | 500 http://tw.archive.ubuntu.com intrepid/universe Packages |
| 201 | 100 /var/lib/dpkg/status |
| 202 | |
| 203 | root@intrepid:~# LANG=C apt-cache policy jfbterm |
| 204 | jfbterm: |
| 205 | Installed: 0.4.7-7.2 |
| 206 | Candidate: 0.4.7-7.2 |
| 207 | Version table: |
| 208 | *** 0.4.7-7.2 0 |
| 209 | 500 http://tw.archive.ubuntu.com intrepid/universe Packages |
| 210 | 100 /var/lib/dpkg/status |
| 211 | }}} |
| 212 | * 追蹤 jfbterm 的 deb package 原始碼 |
| 213 | {{{ |
| 214 | root@intrepid:~# apt-get build-dep jfbterm |
| 215 | root@intrepid:~# apt-get install dpkg-dev |
| 216 | root@intrepid:~# apt-get source jfbterm |
| 217 | }}} |
| 218 | * uvesafb 作者的推測: |
| 219 | {{{ |
| 220 | As to why the console becomes unresponsive after exiting jfbterm -- |
| 221 | jfbterm sets KD_GRAPHICS mode on the console on which it is started, |
| 222 | and apparently fails to set it back to KD_TEXT before segfaulting. This |
| 223 | leaves the console in the broken state. |
| 224 | }}} |
| 225 | * 尋找合理懷疑對象: |
| 226 | {{{ |
| 227 | root@intrepid:~/jfbterm-0.4.7# grep "KD_GRAPHICS" * |
| 228 | vterm.c: ioctl(0, KDSETMODE, KD_GRAPHICS); |
| 229 | |
| 230 | root@intrepid:~/jfbterm-0.4.7# grep "KD_TEXT" * |
| 231 | main.c: if (mode == KD_TEXT) { |
| 232 | vterm.c: ioctl(0, KDSETMODE, KD_TEXT); |
| 233 | }}} |