S.C. MAGI-SYSTEM 日記
Diary
ADSL開通したものの、忙しくって細々と更新中。

hns - 日記自動生成システム - Version 2.19.5

予定TODOLink
    • 999 薬剤師国家試験

    先月 2009年01月
    1 2 3
    4 5 6 7 8 9 10
    11 12 13 14 15 16 17
    18 19 20 21 22 23 24
    25 26 27 28 29 30 31
    Amazon.co.jp のロゴ サーチする:
    Namazu for hns による簡易全文検索

    2009年01月05日(月) [n年日記]

    [天気:晴れ](新横浜) 起床 7:30, 就寝 24:00

    #1 [*BSD] 7.1-RELEASE

    年末の焼肉では「年内には…」とのことでしたが、 年が明けてからのリリースとなりました。
    関係者の方々、おつかれさまでした。

    FreeBSD 7.1-RELEASE

    これでついに6.xブランチはLegacy Branchとなりました。
    このまま6.xのままでいると、元の木阿弥なので 近い時期に7.1-RELEASEにこのサーバも上げることにします。

    2009年01月04日() [n年日記]

    [天気:晴れ](新横浜) 起床 12:30, 就寝 24:00

    #1 [Server] Analog、はじめました

    このサーバのCPUは静音ファンレスだけど、貧弱なことで有名な VIA Samuel 2 (533.36-MHz 686-class CPU) で動作しています。
    ここのところ性能劣化が気になっています。
    特に管理を容易にする関係 *1 で、特にCGIは実行のオーバヘッドが大きく、サーバへの負荷が目立っています。

    そこで、どんなCGIが主に叩かれているのかちょっと Analog で分析してみました。
    分析結果は こちら

    絶望した!
    ほとんどのアクセスが検索botだったり、 .cnからの掲示板CGIへのスパム投稿だったりすることに絶望した!

    世の中のトラフィックの大半はbotとスパムなんでしょうかね…
    *1: ApacheのモジュールにはせずにCGI(perl)、php、rubyの全てを #!/usr/local/bin/xxx の形式にして、直接実行するようにしています。

    2009年01月03日() [n年日記]

    [天気:晴れ](新横浜) 起床 11:45, 就寝 26:00

    #1 [*BSD] 6.4-STABLE

    こちらの日記では大変ご無沙汰しています。

    今でこそ言えることですが… 実はこのサーバは4.11-RELEASE-p21でずーっと動いていました(笑)
    最後にmake buildworldしたのが2005年12月14日(-p13)で、 kernelは2006年10月26日(4系のEOL)でした。
    このEOLを境にportsが4系ではbuildできなくなってしまったので、 かなりの間放置されていましたが…よくここまで動いていたものです。

    で、そろそろportsを更新したいということで、 頑張って4.11→5.x-STABLE→6.x-STABLEという二段構え のmajor越えmake worldを実施しました!

    まずは4.x最後のdmesg
    Copyright (c) 1992-2005 The FreeBSD Project.
    Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    The Regents of the University of California. All rights reserved.
    FreeBSD 4.11-RELEASE-p21 #1: Thu Oct 26 00:20:19 JST 2006
    root@melchior.magisystem.net:/work/obj/usr/src/sys/EDEN
    Timecounter "i8254"  frequency 1193182 Hz
    CPU: VIA C3 Samuel 2 (533.35-MHz 686-class CPU)
    Origin = "CentaurHauls"  Id = 0x673  Stepping = 3
    Features=0x803035<FPU,DE,TSC,MSR,MTRR,PGE,MMX>
    real memory  = 259981312 (253888K bytes)
    avail memory = 248508416 (242684K bytes)
    Preloaded elf kernel "kernel" at 0xc042a000.
    Preloaded elf module "snd_via82c686.ko" at 0xc042a09c.
    Preloaded elf module "snd_pcm.ko" at 0xc042a144.
    md0: Malloc disk
    Using $PIR table, 5 entries at 0xc00fdc70
    npx0: <math processor> on motherboard
    npx0: INT 16 interface
    pcib0: <Host to PCI bridge> on motherboard
    pci0: <PCI bus> on pcib0
    agp0: <VIA Generic host to PCI bridge> mem 0xd0000000-0xdfffffff
     at device 0.0 on pci0
    pcib1: <PCI to PCI bridge (vendor=1106 device=8601)> at device 1.0 on pci0
    pci1: <PCI bus> on pcib1
    pci1: <Trident model 8500 VGA-compatible display device> at 0.0 irq 11
    isab0: <PCI to ISA bridge (vendor=1106 device=8231)> at device 17.0 on pci0
    isa0: <ISA bus> on isab0
    atapci0: <VIA 8231 ATA100 controller> port 0xd000-0xd00f at device 17.1
     on pci0
    ata0: at 0x1f0 irq 14 on atapci0
    ata1: at 0x170 irq 15 on atapci0
    uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 12 at device 17.2
     on pci0
    usb0: <VIA 83C572 USB controller> on uhci0
    usb0: USB revision 1.0
    uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub0: 2 ports with 2 removable, self powered
    uhci1: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 12 at device 17.3
     on pci0
    usb1: <VIA 83C572 USB controller> on uhci1
    usb1: USB revision 1.0
    uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub1: 2 ports with 2 removable, self powered
    chip0: <PCI to Other bridge (vendor=1106 device=8235)> at device 17.4 on pci0
    pcm0: <VIA VT82C686A> port 0xe400-0xe403,0xe000-0xe003,0xdc00-0xdcff irq 10
     at device 17.5 on pci0
    pcm0: <VIA Technologies VIA1612A AC97 Codec>
    vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xe800-0xe8ff
     mem 0xe3000000-0xe30000ff irq 11 at device 18.0 on pci0
    vr0: Ethernet address: 00:40:63:d4:b5:a9
    miibus0: <MII bus> on vr0
    ukphy0: <Generic IEEE 802.3u media interface> on miibus0
    ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    orm0: <Option ROMs> at iomem 0xc0000-0xcbfff,0xcc000-0xd5fff on isa0
    pmtimer0 on isa0
    atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
    vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
    sc0: <System console> at flags 0x100 on isa0
    sc0: VGA <16 virtual consoles, flags=0x100>
    sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
    sio0: type 16550A, console
    ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
    ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
    lpt0: <Printer> on ppbus0
    lpt0: Interrupt-driven port
    ppi0: <Parallel I/O> on ppbus0
    plip0: <PLIP network interface> on ppbus0
    IPsec: Initialized Security Association Processing.
    IP Filter: v3.4.35 initialized.  Default = pass all, Logging = enabled
    ad0: 38154MB <HTE726040M9AT00> [77520/16/63] at ata0-master UDMA100
    

    そして、5-STABLEの様子。
    Copyright (c) 1992-2006 The FreeBSD Project.
    Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    The Regents of the University of California. All rights reserved.
    FreeBSD 5.5-STABLE #0: Wed Dec 31 21:24:11 JST 2008
    root@melchior.magisystem.net:/work/obj/work/src/sys/EDEN
    Timecounter "i8254" frequency 1193182 Hz quality 0
    CPU: VIA C3 Samuel 2 (533.35-MHz 686-class CPU)
    Origin = "CentaurHauls"  Id = 0x673  Stepping = 3
    Features=0x803035<FPU,DE,TSC,MSR,MTRR,PGE,MMX>
    real memory  = 259981312 (247 MB)
    avail memory = 244629504 (233 MB)
    npx0: <math processor> on motherboard
    npx0: INT 16 interface
    acpi0: <VIA601 AWRDACPI> on motherboard
    acpi0: Power Button (fixed)
    Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
    acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
    cpu0: <ACPI CPU (3 Cx states)> on acpi0
    acpi_throttle0: <ACPI CPU Throttling> on cpu0
    acpi_button0: <Power Button> on acpi0
    pcib0: <ACPI Host-PCI bridge> port 0x6000-0x607f,0x5000-0x500f,
     0x4080-0x40ff,0x4000-0x407f,0xcf8-0xcff on acpi0
    pci0: <ACPI PCI bus> on pcib0
    agp0: <VIA 8601 (Apollo ProMedia/PLE133Ta) host to PCI bridge>
     mem 0xd0000000-0xdfffffff at device 0.0 on pci0
    pcib1: <PCI-PCI bridge> at device 1.0 on pci0
    pci1: <PCI bus> on pcib1
    pci1: <display, VGA> at device 0.0 (no driver attached)
    isab0: <PCI-ISA bridge> at device 17.0 on pci0
    isa0: <ISA bus> on isab0
    atapci0: <VIA 8231 UDMA100 controller> port 0xd000-0xd00f,0x376,0x170-0x177,0x3f6,
     0x1f0-0x1f7 at device 17.1 on pci0
    ata0: channel #0 on atapci0
    ata1: channel #1 on atapci0
    uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 12 at device 17.2
     on pci0
    usb0: <VIA 83C572 USB controller> on uhci0
    usb0: USB revision 1.0
    uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub0: 2 ports with 2 removable, self powered
    uhci1: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 12 at device 17.3
     on pci0
    usb1: <VIA 83C572 USB controller> on uhci1
    usb1: USB revision 1.0
    uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub1: 2 ports with 2 removable, self powered
    pci0: <bridge> at device 17.4 (no driver attached)
    pcm0: <VIA VT82C686A> port 0xe400-0xe403,0xe000-0xe003,0xdc00-0xdcff irq 10
     at device 17.5 on pci0
    pcm0: <VIA Technologies VIA1612A AC97 Codec>
    vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xe800-0xe8ff
     mem 0xe3000000-0xe30000ff irq 11 at device 18.0 on pci0
    miibus0: <MII bus> on vr0
    ukphy0: <Generic IEEE 802.3u media interface> on miibus0
    ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    vr0: Ethernet address: 00:40:63:d4:b5:a9
    acpi_tz0: <Thermal Zone> on acpi0
    sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
    sio0: type 16550A, console
    ppc0: <Standard parallel printer port> port 0x378-0x37f irq 7 on acpi0
    ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
    ppbus0: <Parallel port bus> on ppc0
    plip0: <PLIP network interface> on ppbus0
    lpt0: <Printer> on ppbus0
    lpt0: Interrupt-driven port
    ppi0: <Parallel I/O> on ppbus0
    pmtimer0 on isa0
    orm0: <ISA Option ROMs> at iomem 0xcc000-0xd5fff,0xc0000-0xcbfff on isa0
    atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
    atkbd0: <AT Keyboard> irq 1 on atkbdc0
    kbd0 at atkbd0
    sc0: <System console> at flags 0x100 on isa0
    sc0: VGA <16 virtual consoles, flags=0x100>
    sio1: configured irq 3 not in bitmap of probed irqs 0
    sio1: port may not be enabled
    vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
    Timecounter "TSC" frequency 533354488 Hz quality 800
    Timecounters tick every 10.000 msec
    IP Filter: v3.4.35 initialized.  Default = pass all, Logging = enabled
    ad0: 38154MB <HTE726040M9AT00/MHAOA6AA> [77520/16/63] at ata0-master UDMA100
    

    4系から5系へのmake worldはかなり大変です。
    というのは、5系ではkernelの仕組みが変わっているので モジュールの配置やboot loaderの更新を伴います。
    また、各make worldについて言えることですが、 PAMといった認証周りのライブラリがmajorが上がるたびに 大幅に更新されているので、最初はOS付属のsshdを起動する ようにしておいて、portsをリビルドしてからportsのsshdに 切り替えるようにしないと大変なことになります。(笑)

    最後に6.4-STABLEです。
    Copyright (c) 1992-2008 The FreeBSD Project.
    Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    The Regents of the University of California. All rights reserved.
    FreeBSD is a registered trademark of The FreeBSD Foundation.
    FreeBSD 6.4-STABLE #0: Fri Jan  2 03:07:21 JST 2009
    root@melchior.magisystem.net:/work/obj/work/src/sys/EDEN
    Timecounter "i8254" frequency 1193182 Hz quality 0
    CPU: VIA Samuel 2 (533.36-MHz 686-class CPU)
    Origin = "CentaurHauls"  Id = 0x673  Stepping = 3
    Features=0x803035<FPU,DE,TSC,MSR,MTRR,PGE,MMX>
    real memory  = 259981312 (247 MB)
    avail memory = 244715520 (233 MB)
    kbd1 at kbdmux0
    acpi0: <VIA601 AWRDACPI> on motherboard
    acpi0: Power Button (fixed)
    Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
    acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
    cpu0: <ACPI CPU> on acpi0
    acpi_throttle0: <ACPI CPU Throttling> on cpu0
    acpi_button0: <Power Button> on acpi0
    pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff,0x4000-0x407f,
     0x4080-0x40ff,0x5000-0x500f,0x6000-0x607f on acpi0
    pci0: <ACPI PCI bus> on pcib0
    agp0: <VIA 8601 (Apollo ProMedia/PLE133Ta) host to PCI bridge>
     mem 0xd0000000-0xdfffffff at device 0.0 on pci0
    pcib1: <PCI-PCI bridge> at device 1.0 on pci0
    pci1: <PCI bus> on pcib1
    pci1: <display, VGA> at device 0.0 (no driver attached)
    isab0: <PCI-ISA bridge> at device 17.0 on pci0
    isa0: <ISA bus> on isab0
    atapci0: <VIA 8231 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,
     0x170-0x177,0x376,0xd000-0xd00f at device 17.1 on pci0
    ata0: <ATA channel 0> on atapci0
    ata1: <ATA channel 1> on atapci0
    uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 12 at device 17.2
     on pci0
    uhci0: [GIANT-LOCKED]
    usb0: <VIA 83C572 USB controller> on uhci0
    usb0: USB revision 1.0
    uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub0: 2 ports with 2 removable, self powered
    uhci1: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 12 at device 17.3
     on pci0
    uhci1: [GIANT-LOCKED]
    usb1: <VIA 83C572 USB controller> on uhci1
    usb1: USB revision 1.0
    uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub1: 2 ports with 2 removable, self powered
    pci0: <bridge> at device 17.4 (no driver attached)
    pcm0: <VIA VT82C686A> port 0xdc00-0xdcff,0xe000-0xe003,0xe400-0xe403 irq 10
     at device 17.5 on pci0
    pcm0: <VIA Technologies VIA1612A AC97 Codec>
    vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xe800-0xe8ff
     mem 0xe3000000-0xe30000ff irq 11 at device 18.0 on pci0
    vr0: Quirks: 0x0
    miibus0: <MII bus> on vr0
    ukphy0: <Generic IEEE 802.3u media interface> on miibus0
    ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    vr0: Ethernet address: 00:40:63:d4:b5:a9
    acpi_tz0: <Thermal Zone> on acpi0
    sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
    sio0: type 16550A, console
    ppc0: <Standard parallel printer port> port 0x378-0x37f irq 7 on acpi0
    ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
    ppbus0: <Parallel port bus> on ppc0
    plip0: <PLIP network interface> on ppbus0
    lpt0: <Printer> on ppbus0
    lpt0: Interrupt-driven port
    ppi0: <Parallel I/O> on ppbus0
    pmtimer0 on isa0
    orm0: <ISA Option ROMs> at iomem 0xc0000-0xcbfff,0xcc000-0xd5fff on isa0
    sc0: <System console> at flags 0x100 on isa0
    sc0: VGA <16 virtual consoles, flags=0x100>
    vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
    atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
    atkbd0: <AT Keyboard> irq 1 on atkbdc0
    kbd0 at atkbd0
    atkbd0: [GIANT-LOCKED]
    sio1: configured irq 3 not in bitmap of probed irqs 0
    sio1: port may not be enabled
    Timecounter "TSC" frequency 533355476 Hz quality 800
    Timecounters tick every 1.000 msec
    IP Filter: v4.1.28 initialized.  Default = pass all, Logging = enabled
    ad0: 38154MB <HTE726040M9AT00 MHAOA6AA> at ata0-master UDMA100
    

    5系から6系へはそんなに大きな障壁はありませんでしたね。
    ただ、majorが上がるごとに動作が重くなってい気がするのは 気のせいでしょうか。(笑)
    そろそろこのEDEN(533MHz)でのmake worldはつらいです。
    特に、make world後のportupgradeが絶望的に…

    多少は手間がかかるとは言え、 4.11-RELEASEから6.4-RELEASEまで きちんと上げることができるFreeBSDの仕組みに感心しました。


    最近の日記
    2009年01月05日
    [*BSD]7.1-RELEASE

    2009年01月04日
    [Server]Analog、はじめました

    2009年01月03日
    [*BSD]6.4-STABLE

    以上、3 日分です。
    タイトル一覧
    カテゴリ分類
    Powered by hns-2.19.5, HyperNikkiSystem Project