wiki:jazz/08-11-17

2008-11-17

  • SC'08
    • SC'08 Gala
      • 19:00-21:00 sign up CUDA Expert Day time slot at the NVIDIA booth(#833) during the Exhibits Opening Gala
      • 22:00 JavaChopper theme bike in the Sun booth (#1021)
      • Cray booth (#532): Wii golf tournament.
      • QLogic booth (#333): unveiling uber networking box and giving away a Ducati motorcycle.
    • SC'08 Booth
      • HLRS booth (#1353): MPI-2.1 Standard Book for USD$ 22.

BUGFIX: jfbterm (3)

  • (續 08-11-15@GMT-6 BUGFIX: jfbterm (1)
  • (續 08-11-16@GMT-6 BUGFIX: jfbterm (2)
  • 編輯 GRUB 的 menu.lst 就可以不用每次都跑 modprobe
    • menu.lst

      old new  
      125125
      126126title          Ubuntu 8.10, kernel 2.6.27-7-server
      127127uuid           574912ac-8bd6-4cc7-90c6-8c5362033fec
      128 kernel         /boot/vmlinuz-2.6.27-7-server root=UUID=574912ac-8bd6-4cc7-90c6-8c5362033fec ro quiet splash
       128kernel         /boot/vmlinuz-2.6.27-7-server root=UUID=574912ac-8bd6-4cc7-90c6-8c5362033fec ro quiet splash vga=0x305
      129129initrd         /boot/initrd.img-2.6.27-7-server
      130130quiet
  • mmap 的 offset 參數必須是 sysconf 中定義 _SC_PAGE_SIZE 的倍數。(offset must be a multiple of the page size as returned by sysconf(_SC_PAGE_SIZE).)
  • 使用 gdb 設定中斷點在 fbcomm.c 第 566 行並觀察變數狀態,可以知道送到 mmap 函數的 offset 參數內容為 1572864 。
    (gdb) p p->slen
    $5 = 1572864
    
  • 為了確認 offset 參數是否為 _SC_PAGESIZE 的整數倍,先撰寫測試程式,用 sysconf 取得目前系統的 _SC_PAGESIZE 屬性。
    root@intrepid:~# cat > get_sc_pagesize.c << EOF
    #include <unistd.h>
    #include <stdio.h>
    
    int main()
    {
      printf("_SC_PAGESIZE = %ld\n",sysconf(_SC_PAGESIZE));
    }
    EOF
    root@intrepid:~# gcc get_sc_pagesize.c -o get_sc_pagesize
    root@intrepid:~# ./get_sc_pagesize
    _SC_PAGESIZE = 4096
    
  • 根據 mmap 的 manpages,產生 EINVAL 錯誤的另一個原因是 length 等於零(從 Linux 2.6.12 以後),確認主因為 length 參數 = p->mlen = 0
    MMAP(2): void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset);
    MMAP(2): EINVAL (since Linux 2.6.12) length was 0.
    
    566             p->mmio = (u_char*)mmap(NULL, p->mlen, PROT_READ|PROT_WRITE,
    567                                     MAP_SHARED, p->fh, p->slen);
    (gdb) p p->mlen
    $3 = 0
    

CUDA

Linux Kernel Security

Linux Kernel OOPS

Wireless Security

未來競爭力

  • 啟動對學習的熱情 青春,鍊成金
    • 「不是不夠聰明,是沒有動機。」
    • 台灣這種「訓練而非教育」的方式,製造出會考試、接收指令的學生,但這些能力被證明已不適用。
    • 全方位均衡的人才:
      • 一、扎根專業與技術:持續學習新知,並加以運用,長期目標是建立專業的自主。
      • 二、扎根態度與倫理:積極自我管理的能力、對工作的承諾,對生命的熱情。
      • 三、扎根創新與感性:跨界學習,加強溝通、美感等感性能力,平衡理性基礎,左右腦並用。
Last modified 15 years ago Last modified on Nov 21, 2008, 1:19:18 PM