cat /proc/acpi/thermal_zone/THRM/temperature
kernel 要把 I2O 編進去
cat /proc/acpi/thermal_zone/THRM/temperature
kernel 要把 I2O 編進去
2009.0724 emerge 這些 packages:
time emerge -av gentoo-sources lilo vim bind vixie-cron syslog-ng dhcpcd xfsprogs openssh samba net-fs/nfs-utils portmap postfix screen ntp cronolog net-mail/mpack app-arch/sharutils unzip net-dns/bind net-dns/bind-tools net-ftp/ftp net-misc/netkit-telnetd net-analyzer/trafshow net-analyzer/tcpdump net-analyzer/traceroute
kernel compile options
<*> Serial ATA (prod) and Parallel ATA (experimental) drivers —>
<*> Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support
CONFIG_ATA_PIIX:
This option enables support for ICH5/6/7/8 Serial ATA
and support for PATA on the Intel ESB/ICH/PIIX3/PIIX4 series
host controllers.
[*] Ethernet (1000 Mbit) —>
<*> Realtek 8169 gigabit ethernet support
oasis ~ # uname -a
Linux oasis 2.6.29-gentoo-r5 #3 SMP PREEMPT Mon Jul 27 11:39:51 CST 2009 x86_64 Intel(R) Atom(TM) CPU 330 @ 1.60GHz GenuineIntel GNU/Linux
oasis ~ # file /bin/bash
/bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), stripped
make.conf
CFLAGS="-O2 -pipe" CXXFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" USE="mmx sse sse2 -cups -ipv6 ssl apache2 berkdb cjk cli crypt curl gd gdbm iconv mysql mysqli ncurses nls pcre readline reflection session spell spl truetype unicode xml zlib ssl hash calendar json simplexml"
hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 1080 MB in 2.00 seconds = 539.97 MB/sec
Timing buffered disk reads: 196 MB in 3.01 seconds = 65.19 MB/sec
processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 28 model name : Intel(R) Atom(TM) CPU 330 @ 1.60GHz stepping : 2 cpu MHz : 1596.135 cache size : 512 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 2 apicid : 1 initial apicid : 1 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm lahf_lm bogomips : 3192.15 clflush size : 64 cache_alignment : 64 address sizes : 32 bits physical, 48 bits virtual power management:
gcc --version gcc (Gentoo 4.3.2-r3 p1.6, pie-10.1.5) 4.3.2 php --version PHP 5.2.10-pl0-gentoo (cli) (built: Aug 7 2009 19:23:18) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies mysql --version mysql Ver 14.12 Distrib 5.0.67, for unknown-linux-gnu (x86_64) using readline 5.1 with senna-1.1.4.tar.gz tritonn-1.0.12-mysql-5.0.67.tar.gz
裝 dev-php5/pecl-memcache 有點問題
解決:
在 /etc/portage/package.keywords 加上
dev-php5/pecl-memcache
URL : http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#formats
我的 sample code :
ServerName test.monster.tw DocumentRoot "/m2/test" LogFormat "%{%Y-%m-%d}t , %{%H:%M:%S}t , %D , %a , \"%q\" , \"%{Referer}i\" , \"%{User-agent}i\"" MONSTER_format CustomLog "/m2/log/test.monster.tw/access.log" MONSTER_format
MTS 的 http config
SetEnvIf Request_URI /dot.gif MTS_icon LogFormat "%{%Y-%m-%d}t , %{%H:%M:%S}t , %a , \"%q\" , \"%{Referer}i\" , \"%{User-agent}i\"" MTS_format CustomLog "| /usr/sbin/cronolog /var/www/ts.monster.com.tw/log/access-%Y%m%d%H.log" MTS_format env=MTS_icon
apache default 的 combined format
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined CustomLog log/acces_log combined
以下是 apache 的資料
Format String | Description | ||||||
---|---|---|---|---|---|---|---|
%% |
The percent sign | ||||||
%a |
Remote IP-address | ||||||
%A |
Local IP-address | ||||||
%B |
Size of response in bytes, excluding HTTP headers. | ||||||
%b |
Size of response in bytes, excluding HTTP headers. In CLF format, i.e. a ‘- ‘ rather than a 0 when no bytes are sent. |
||||||
%{Foobar}C |
The contents of cookie Foobar in the request sent to the server. | ||||||
%D |
The time taken to serve the request, in microseconds. | ||||||
%{FOOBAR}e |
The contents of the environment variable FOOBAR | ||||||
%f |
Filename | ||||||
%h |
Remote host | ||||||
%H |
The request protocol | ||||||
%{Foobar}i |
The contents of Foobar: header line(s) in the request sent to the server. Changes made by other modules (e.g. mod_headers ) affect this. |
||||||
%k |
Number of keepalive requests handled on this connection. Interesting if KeepAlive is being used, so that, for example, a ‘1’ means the first keepalive request after the initial one, ‘2’ the second, etc…; otherwise this is always 0 (indicating the initial request). |
||||||
%l |
Remote logname (from identd, if supplied). This will return a dash unless mod_ident is present and IdentityCheck is set On . |
||||||
%m |
The request method | ||||||
%{Foobar}n |
The contents of note Foobar from another module. | ||||||
%{Foobar}o |
The contents of Foobar: header line(s) in the reply. |
||||||
%p |
The canonical port of the server serving the request | ||||||
%{format}p |
The canonical port of the server serving the request or the server’s actual port or the client’s actual port. Valid formats are canonical , local , or remote . |
||||||
%P |
The process ID of the child that serviced the request. | ||||||
%{format}P |
The process ID or thread id of the child that serviced the request. Valid formats are pid , tid , and hextid . hextid requires APR 1.2.0 or higher. |
||||||
%q |
The query string (prepended with a ? if a query string exists, otherwise an empty string) |
||||||
%r |
First line of request | ||||||
%s |
Status. For requests that got internally redirected, this is the status of the *original* request — %>s for the last. |
||||||
%t |
Time the request was received (standard english format) | ||||||
%{format}t |
The time, in the form given by format, which should be in strftime(3) format. (potentially localized) |
||||||
%T |
The time taken to serve the request, in seconds. | ||||||
%u |
Remote user (from auth; may be bogus if return status (%s ) is 401) |
||||||
%U |
The URL path requested, not including any query string. | ||||||
%v |
The canonical ServerName of the server serving the request. |
||||||
%V |
The server name according to the UseCanonicalName setting. |
||||||
%X |
Connection status when response is completed:
(This directive was |
||||||
%I |
Bytes received, including request and headers, cannot be zero. You need to enable mod_logio to use this. |
||||||
%O |
Bytes sent, including headers, cannot be zero. You need to enable mod_logio to use this. |
防止盜圖的 code
SetEnvIf Referer "^http://www.example.com/" local_referal # Allow browsers that do not send Referer info SetEnvIf Referer "^$" local_referal [directory images web] Order Deny,Allow Deny from all Allow from env=local_referal [/directory]
這個更讚! 排除掉 gif / jpg / png / css / swf … 等等不要log的檔案
SetEnvIf Request_URI \.gif misc-request SetEnvIf Request_URI \.jpg misc-request SetEnvIf Request_URI \.png misc-request SetEnvIf Request_URI \.css misc-request SetEnvIf Request_URI \.swf misc-request CustomLog logs/access_log env=!misc-request
整合一下, 這是 lazy 的 config
ServerName lazy.monster.tw DocumentRoot "/home/webuser/lazy.monster.tw" SetEnvIf Request_URI \.gif misc-request SetEnvIf Request_URI \.jpg misc-request SetEnvIf Request_URI \.png misc-request SetEnvIf Request_URI \.css misc-request SetEnvIf Request_URI \.swf misc-request LogFormat "%{%Y-%m-%d}t , %{%H:%M:%S}t , %a , %u , %D , \"%r\" , \"%{Referer}i\" , \"%{User-agent}i\"" MONSTER_format CustomLog /m2/log/lazy.monster.tw/access.log MONSTER_format env=!misc-request
硬體/廠牌/規格 | /proc/cpuinfo , /proc/scsi/scsi |
lazy.monster.tw |
processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Xeon(R) CPU E5420 @ 2.50GHz stepping : 8 cpu MHz : 2491.990 cache size : 6144 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss nx constant_tsc arch_perfmon pebs bts pni ssse3 sse4_1 bogomips : 4989.02 clflush size : 64 power management: Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: VMware Model: Virtual disk Rev: 1.0 Type: Direct-Access ANSI SCSI revision: 02 |
DELL 1950 , MEMORY 16G
(dbs) |
processor : 7 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Xeon(R) CPU E5420 @ 2.50GHz stepping : 10 cpu MHz : 2493.759 cache size : 6144 KB physical id : 1 siblings : 4 core id : 7 cpu cores : 4 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm bogomips : 4987.52 clflush size : 64 cache_alignment : 64 address sizes : 38 bits physical, 48 bits virtual power management: Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: Dell Model: Virtual CDROM Rev: 123 Type: CD-ROM ANSI SCSI revision: 02 Host: scsi1 Channel: 00 Id: 00 Lun: 00 Vendor: Dell Model: Virtual Floppy Rev: 123 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi2 Channel: 00 Id: 32 Lun: 00 Vendor: DP Model: BACKPLANE Rev: 1.05 Type: Enclosure ANSI SCSI revision: 05 Host: scsi2 Channel: 02 Id: 00 Lun: 00 Vendor: DELL Model: PERC 6/i Rev: 1.21 Type: Direct-Access ANSI SCSI revision: 05 |
DELL OPTIPLEX 330
CORE 2 DUO |
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Core(TM)2 Duo CPU E4400 @ 2.00GHz stepping : 8 cpu MHz : 1993.777 cache size : 2048 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss nx constant_tsc up arch_perfmon pebs bts pni ssse3 bogomips : 3997.16 clflush size : 64 |
dev |
processor : 7 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU E5310 @ 1.60GHz stepping : 7 cpu MHz : 1596.157 cache size : 4096 KB physical id : 1 siblings : 4 core id : 3 cpu cores : 4 apicid : 7 initial apicid : 7 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl vmx tm2 ssse3 cx16 xtpr pdcm dca lahf_lm tpr_shadow bogomips : 3192.12 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: $ cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 08 Lun: 00 Vendor: DP Model: BACKPLANE Rev: 1.00 Type: Enclosure ANSI SCSI revision: 05 Host: scsi0 Channel: 02 Id: 00 Lun: 00 Vendor: DELL Model: PERC 5/i Rev: 1.00 Type: Direct-Access ANSI SCSI revision: 05 |
Jack大的桌機之一
Intel Atom 330 @ 1.60GHz |
processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 28 model name : Intel(R) Atom(TM) CPU 330 @ 1.60GHz stepping : 2 cpu MHz : 1596.052 cache size : 512 KB physical id : 0 siblings : 4 core id : 1 cpu cores : 2 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl tm2 ssse3 cx16 xtpr lahf_lm bogomips : 3192.11 scsi0 : ata_piix scsi1 : ata_piix scsi 0:0:0:0: Direct-Access ATA WDC WD1200BEVS-6 04.0 PQ: 0 ANSI: 5 sd 0:0:0:0: Attached scsi disk sda sd 0:0:0:0: Attached scsi generic sg0 type 0 eth0: RTL8168b/8111b at 0xf8c26000, 00:30:1b:82:b8:xx, IRQ 16 |
monster |
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 8 model name : Pentium III (Coppermine) stepping : 1 cpu MHz : 600.052 cache size : 256 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse bogomips : 1200.94 clflush size : 32 |
阿毛的 |
processor : 0 vendor_id : CentaurHauls cpu family : 6 model : 9 model name : VIA Nehemiah stepping : 5 cpu MHz : 733.194 cache size : 64 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu de pse tsc msr cx8 mtrr pge cmov mmx fxsr sse rng rng_en bogomips : 1466.38 clflush size : 32 power management: |
new mysql db |
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 26 model name : Intel(R) Xeon(R) CPU E5520 @ 2.27GHz stepping : 5 cpu MHz : 2261.096 cache size : 8192 KB physical id : 1 siblings : 8 core id : 0 cpu cores : 4 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc ida pni monitor ds_cpl vmx est tm2 cx16 xtpr popcnt lahf_lm bogomips : 4525.40 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: |
dell 2950 dbs |
processor : 7 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Xeon(R) CPU E5420 @ 2.50GHz stepping : 10 cpu MHz : 2493.748 cache size : 6144 KB physical id : 1 siblings : 4 core id : 3 cpu cores : 4 apicid : 7 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm bogomips : 4987.44 clflush size : 64 cache_alignment : 64 address sizes : 38 bits physical, 48 bits virtual power management: eth0: Broadcom NetXtreme II BCM5708 1000Base-T (B2) PCI-X 64-bit 133MHz found at mem f8000000, IRQ 169, node addr 0024e877c5d2 scsi5 : LSI SAS based MegaRAID driver Vendor: SEAGATE Model: ST3146356SS Rev: HS09 Type: Direct-Access ANSI SCSI revision: 05 Vendor: SEAGATE Model: ST3146356SS Rev: HS09 Type: Direct-Access ANSI SCSI revision: 05 Vendor: SEAGATE Model: ST3146356SS Rev: HS09 Type: Direct-Access ANSI SCSI revision: 05 Vendor: SEAGATE Model: ST3146356SS Rev: HS09 Type: Direct-Access ANSI SCSI revision: 05 Vendor: SEAGATE Model: ST3146356SS Rev: HS09 Type: Direct-Access ANSI SCSI revision: 05 Vendor: SEAGATE Model: ST3146356SS Rev: HS09 Type: Direct-Access ANSI SCSI revision: 05 Vendor: DP Model: BACKPLANE Rev: 1.05 Type: Enclosure ANSI SCSI revision: 05 scsi 5:0:32:0: Attached scsi generic sg4 type 13 Vendor: DELL Model: PERC 6/i Rev: 1.21 Type: Direct-Access ANSI SCSI revision: 05 |
— | — |
— | — |
— | — |
去 Oracle 那邊 download
那個 instantclient-sqlplus-linux32-11.1.0.7.zip
放到 /usr/portage/distfiles
下 emerge -av dev-db/oracle-instantclient-sqlplus