ServersMan
Post-it: New Post-it (help)
222.151.148.140
H/W
hao@dti-vps-srv33% cat cpuinfo [/proc] processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 26 model name : Intel(R) Xeon(R) CPU L5520 @ 2.27GHz stepping : 5 cpu MHz : 903.099 cache size : 8192 KB physical id : 1 siblings : 8 core id : 0 cpu cores : 4 apicid : 16 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 nonstop_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm bogomips : 4522.12 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: [8]
hao@dti-vps-srv33% uname -a [/proc] Linux dti-vps-srv33 2.6.18-194.3.1.el5.028stab069.6 #1 SMP Wed May 26 18:31:05 MSD 2010 i686 GNU/Linux
hao@dti-vps-srv33% ifconfig [~]
lo Link encap:ローカルループバック
inetアドレス:127.0.0.1 マスク:255.0.0.0
inet6アドレス: ::1/128 範囲:ホスト
UP LOOPBACK RUNNING MTU:16436 メトリック:1
RXパケット:3393 エラー:0 損失:0 オーバラン:0 フレーム:0
TXパケット:3393 エラー:0 損失:0 オーバラン:0 キャリア:0
衝突(Collisions):0 TXキュー長:0
RXバイト:468287 (457.3 KiB) TXバイト:468287 (457.3 KiB)
venet0 Link encap:不明なネット ハードウェアアドレス 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inetアドレス:127.0.0.1 P-t-P:127.0.0.1 ブロードキャスト:0.0.0.0 マスク:255.255.255.255
inet6アドレス: ::1/128 範囲:ホスト
inet6アドレス: 2001:2e8:626:0:2:1:0:41/0 範囲:グローバル
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 メトリック:1
RXパケット:709993 エラー:0 損失:0 オーバラン:0 フレーム:0
TXパケット:368164 エラー:0 損失:0 オーバラン:0 キャリア:0
衝突(Collisions):0 TXキュー長:0
RXバイト:909702639 (867.5 MiB) TXバイト:33073473 (31.5 MiB)
venet0:0 Link encap:不明なネット ハードウェアアドレス 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inetアドレス:183.181.20.65 P-t-P:183.181.20.65 ブロードキャスト:0.0.0.0 マスク:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 メトリック:1
top - 16:27:47 up 1 day, 18:50, 2 users, load average: 0.00, 0.49, 1.20
Tasks: 28 total, 2 running, 26 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 786432k total, 129852k used, 656580k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
48335 qwik 15 0 33572 21m 1640 S 0.0 2.7 0:01.15 qwikweb-server
3814 daemon 15 0 29560 14m 5992 S 0.0 1.9 0:30.24 apache2
42339 daemon 15 0 30364 14m 5972 S 0.0 1.9 0:17.14 apache2
58429 daemon 15 0 29564 14m 5436 S 0.0 1.8 0:39.91 apache2
24481 daemon 15 0 30364 13m 5240 S 0.0 1.8 0:13.74 apache2
58548 daemon 15 0 28728 13m 5880 S 0.0 1.8 0:31.42 apache2
48339 qwik 18 0 19392 7264 1084 S 0.0 0.9 0:00.11 quickml-server
58425 root 18 0 23836 7260 4116 S 0.0 0.9 0:00.09 apache2
64550 ajaxterm 25 0 18432 4768 1420 S 0.0 0.6 0:00.10 python
46892 hao 17 0 4952 2696 1844 S 0.0 0.3 0:00.20 zsh
42603 hao 15 0 4948 2600 1816 S 0.0 0.3 0:00.14 zsh
44646 root 18 0 9412 2320 1808 S 0.0 0.3 0:00.03 dovecot-auth
42602 hao 15 0 5048 2292 804 R 0.0 0.3 0:00.15 screen
42509 hao 16 0 4688 2240 1652 S 0.0 0.3 0:00.04 zsh
14033 dovecot 15 0 3504 1604 1352 S 0.0 0.2 0:00.00 imap-login
17830 dovecot 15 0 3504 1600 1352 S 0.0 0.2 0:00.00 imap-login
22164 dovecot 15 0 3504 1600 1352 S 0.0 0.2 0:00.01 imap-login
20339 fetchmai 15 0 5196 1316 956 S 0.0 0.2 0:01.12 fetchmail
42477 root 18 0 2492 1212 956 S 0.0 0.2 0:00.00 login
34512 hao 15 0 2256 1076 876 R 0.0 0.1 0:00.02 top
44201 root 15 0 5272 1064 704 S 0.0 0.1 0:00.00 sshd
42601 hao 15 0 3768 988 804 S 0.0 0.1 0:00.00 screen
9922 root 18 0 2352 884 720 S 0.0 0.1 0:00.00 xinetd
64599 root 15 0 2036 868 696 S 0.0 0.1 0:00.00 cron
42476 telnetd 15 0 1856 800 660 S 0.0 0.1 0:00.18 in.telnetd
1 root 18 0 1980 688 592 S 0.0 0.1 0:05.02 init
44644 root 15 0 2000 656 504 S 0.0 0.1 0:00.04 dovecot
64535 root 15 0 1692 640 512 S 0.0 0.1 0:00.09 syslogd
root@dti-vps-srv33# df [~]
Filesystem 1K-ブロック 使用 使用可 使用% マウント位置
/dev/simfs 10485760 9039356 1446404 87% /
tmpfs 393216 0 393216 0% /lib/init/rw
tmpfs 393216 0 393216 0% /dev/shm
root@dti-vps-srv33# mount [~]
/dev/simfs on / type reiserfs (rw,usrquota,grpquota)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec)
root@dti-vps-srv33# cat /etc/fstab [~]
proc /proc proc defaults 0 0
none /dev/pts devpts rw 0 0
root@dti-vps-srv33# hdparm -Tt /dev/simfs [~]
/dev/simfs: Permission denied
}}}
hdparmは測定不能?
*unixbench
{{{
% ./Run [~/work/unixbench-5.1.2]
make all
make[1]: Entering directory `/home/hao/work/unixbench-5.1.2'
Checking distribution of files
./pgms exists
./src exists
./testdir exists
./tmp exists
./results exists
make[1]: Leaving directory `/home/hao/work/unixbench-5.1.2'
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
sh: 3dinfo: command not found
# # # # # # # ##### ###### # # #### # #
# # ## # # # # # # # ## # # # # #
# # # # # # ## ##### ##### # # # # ######
# # # # # # ## # # # # # # # # #
# # # ## # # # # # # # ## # # # #
#### # # # # # ##### ###### # # #### # #
Version 5.1.2 Based on the Byte Magazine Unix Benchmark
Multi-CPU version Version 5 revisions by Ian Smith,
Sunnyvale, CA, USA
December 22, 2007 johantheghost at yahoo period com
1 x Dhrystone 2 using register variables 1 2 3 4 5 6 7 8 9 10
1 x Double-Precision Whetstone 1 2 3 4 5 6 7 8 9 10
1 x Execl Throughput 1 2 3
1 x File Copy 1024 bufsize 2000 maxblocks 1 2 3
1 x File Copy 256 bufsize 500 maxblocks 1 2 3
1 x File Copy 4096 bufsize 8000 maxblocks 1 2 3
1 x Pipe Throughput 1 2 3 4 5 6 7 8 9 10
1 x Pipe-based Context Switching 1 2 3 4 5 6 7 8 9 10
1 x Process Creation 1 2 3
1 x System Call Overhead 1 2 3 4 5 6 7 8 9 10
1 x Shell Scripts (1 concurrent) 1 2 3
1 x Shell Scripts (8 concurrent) 1 2 3
========================================================================
BYTE UNIX Benchmarks (Version 5.1.2)
System: dti-vps-srv33: GNU/Linux
OS: GNU/Linux -- 2.6.18-194.3.1.el5.028stab069.6 -- #1 SMP Wed May 26 18:31:05 MSD 2010
Machine: i686 (unknown)
Language: en_US.utf8 (charmap="ANSI_X3.4-1968", collate="ANSI_X3.4-1968")
CPU 0: Intel(R) Xeon(R) CPU L5520 @ 2.27GHz (4522.1 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
15:46:23 up 1 day, 18:08, 2 users, load average: 0.18, 0.13, 0.03; runlevel 2
------------------------------------------------------------------------
Benchmark Run: 月 2月 28 2011 15:46:23 - 16:17:36
1 CPU in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 3214577.7 lps (10.0 s, 7 samples)
Double-Precision Whetstone 1586.6 MWIPS (10.3 s, 7 samples)
Execl Throughput 1024.9 lps (29.4 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 137421.9 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 38164.6 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 354825.0 KBps (30.0 s, 2 samples)
Pipe Throughput 274995.0 lps (10.0 s, 7 samples)
Pipe-based Context Switching 80952.8 lps (10.0 s, 7 samples)
Process Creation 3321.2 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 1486.0 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 203.8 lpm (60.1 s, 2 samples)
System Call Overhead 235209.1 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 3214577.7 275.5
Double-Precision Whetstone 55.0 1586.6 288.5
Execl Throughput 43.0 1024.9 238.3
File Copy 1024 bufsize 2000 maxblocks 3960.0 137421.9 347.0
File Copy 256 bufsize 500 maxblocks 1655.0 38164.6 230.6
File Copy 4096 bufsize 8000 maxblocks 5800.0 354825.0 611.8
Pipe Throughput 12440.0 274995.0 221.1
Pipe-based Context Switching 4000.0 80952.8 202.4
Process Creation 126.0 3321.2 263.6
Shell Scripts (1 concurrent) 42.4 1486.0 350.5
Shell Scripts (8 concurrent) 6.0 203.8 339.6
System Call Overhead 15000.0 235209.1 156.8
========
System Benchmarks Index Score 277.0
OS
[/etc/crontab] SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # m h dom mon dow user command 14 * * * * root cd / && run-parts --report /etc/cron.hourly 0 3 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 49 5 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 31 0 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly ) #
パッケージ他
apt-get install
- lv
- subversion
- zsh
- ruby
- irb
- qwik
- libapache2-svn (mod_davはapache2.2-commonで導入済み、mod_encodingは導入されていないが、WebDAVの日本語は問題無し、これってWin9xがいなければOKなんだっけか?)
- libalgorithm-diff-ruby1.8
% sudo ln -s /usr/lib/ruby/1.8/algorithm/diff.rb /usr/lib/ruby/1.8/
これやらないと、require 'diff'できない (???)
- libdifflcs-ruby1.8 (たぶん不要)
- php5
- telnetd
- dovecot-imapd (hostnameが解決できる(/etc/hosts)状態にしておかないとインストールが失敗する)
- fetchmail
- graphviz
- ttf-vlgothic
- nkf
- gcc
- sysstat (/proc/diskstatが無いのでiostatは動かない、muninのiostatプラグインも)
- munin
root@dti-vps-srv33# diff -uw status.conf.org status.conf
--- status.conf.org 2011-03-02 10:33:27.000000000 +0900
+++ status.conf 2011-03-02 10:32:37.000000000 +0900
@@ -5,12 +5,14 @@
# Uncomment and change the ".example.com" to allow
# access from other hosts.
#
+ExtendedStatus On
+
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
- Allow from localhost ip6-localhost
- Allow from .example.com
+ Allow from localhost.localdomain ip6-localhost
+# Allow from .example.com
</Location>
</IfModule>
root@dti-vps-srv33# pwd
/etc/munin/plugins
root@dti-vps-srv33# ln -s /usr/share/munin/plugins/apache_accesses .
root@dti-vps-srv33# ln -s /usr/share/munin/plugins/apache_processes .
root@dti-vps-srv33# ln -s /usr/share/munin/plugins/apache_volume .
root@dti-vps-srv33# ln -s /usr/share/munin/plugins/iostat . (動かない)
{{{
% sudo dpkg-reconfigure locales
- lftp
- ddclient
a2enmod
- dav_fs
sudo
debx# diff -uw sudoers.org sudoers --- sudoers.org 2011-03-31 09:16:48.000000000 +0900 +++ sudoers 2011-04-01 17:10:39.000000000 +0900 @@ -6,6 +6,7 @@ # Defaults env_reset +Defaults env_keep += HOME # Host alias specification
Last modified: 2011-04-19 by Unknown
