MAX38計算機の酒向メモ
をほぼそのまま踏襲。
●apt updates/install apt-get update apt-get upgrade apt-get install aptitude ntp kterm gnuplot perl-Tk apt-get install ncurses-devel apt-get install samba●NTPD gnomeの時間設定ウインドウからntpサーバ問い合わせ を有効にする ntpサーバは天文センター内(platini=157.82.120.101)にする ●サービスの選択 chkconfig --del postfix chkconfig --del cpuspeed chkconfig --del acpid chkconfig --del cups chkconfig --del smb chkconfig --del iptables #NFS関連はとりあえず外しておく chkconfig --del netfs chkconfig --del autofs chkconfig --del nfs chkconfig --level 345 ntpd on chkconfig --level 345 nfs on #chkconfig --level 345 smb on chkconfig --level 345 autofs on●RT Linux Install
●RTAIの動作確認
|
●/tmpをtmpfsにしてRAM上に展開 > /etc/fstab tmpfs /tmp tmpfs defaults,size=512m 0 0 EOF●hdparm結果 hdparm -I /dev/hde
/dev/hde:
ATA device, with non-removable media
Model Number: TS32GSSD25-M
Serial Number: 000001B6
Standards:
Supported: 4
Likely used: 6
Configuration:
Logical max current
cylinders 16383 16383
heads 15 15
sectors/track 63 63
--
CHS current addressable sectors: 15481935
LBA user addressable sectors: 61930575
device size with M = 1024*1024: 30239 MBytes
device size with M = 1000*1000: 31708 MBytes (31 GB)
Capabilities:
LBA, IORDY(may be)(cannot be disabled)
Queue depth: 1
Standby timer values: spec'd by Vendor
R/W multiple sector transfer: Max = 1 Current = 1
Advanced power management level: unknown setting (0x0000)
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 *udma4
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
NOP cmd
READ BUFFER cmd
WRITE BUFFER cmd
Power Management feature set
* SMART feature set
Advanced Power Management feature set
CFA feature set
* SMART self-test
* SMART error logging
HW reset results:
CBLID- below Vih
Device num = 0
CFA power mode 1:
enabled
Maximum current = 500ma
●mount オプションnoatimeオプションを付ける emacs -nw /etc/fstab LABEL=/ / ext3 defaults,noatime 1 1 LABEL=/boot /boot ext3 defaults,noatime 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0 LABEL=/home /home ext3 defaults,noatime 1 2 none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 LABEL=SWAP-hde3 swap swap defaults 0 0 tmpfs /tmp tmpfs defaults,size=512m 0 0ただし、この設定は最終readをチェックするようなソフトウェアにはまずいか? DBソフトとかではありうる? ●hdparm設定 http://www7.ocn.ne.jp /~kikuya3/linux/hdparm.html に
hdpram -i から得た情報の中に
MaxMultSect=16 とある、そこでMul-tiple sector mode (aka IDE Block Mode)に
-m 16 を設定
その他色々なオプションも有るがこのマシンには有効では無かった
*他のPCはudma2なので-d 1 -m 16 -X 66 で設定してある、がしかし、
まだ研究の余地が有る
とある。man hdparm によると
-m Get/set sector count for multiple sector I/O on the
drive. A setting of 0 disables this feature. Mul-
tiple sector mode (aka IDE Block Mode), is a fea-
ture of most modern IDE hard drives, permitting the
transfer of multiple sectors per I/O interrupt,
rather than the usual one sector per interrupt.
When this feature is enabled, it typically reduces
operating system overhead for disk I/O by 30-50%.
On many systems, it also provides increased data
throughput of anywhere from 5% to 50%. Some
drives, however (most notably the WD Caviar
series), seem to run slower with multiple mode
enabled. Your mileage may vary. Most drives sup-
port the minimum settings of 2, 4, 8, or 16 (sec-
tors). Larger settings may also be possible,
depending on the drive. A setting of 16 or 32
seems optimal on many systems. Western Digital
recommends lower settings of 4 to 8 on many of
their drives, due tiny (32kB) drive buffers and
non-optimized buffering algorithms.
なのだが、今回のディスクについては
MaxMultSect=1なので、意味はないかなー。一応設定しておく。 hdparm -d 1 -m 1 /dev/hde で、転送速度チェック。 hdparm -t /dev/hde /dev/hde: Timing buffered disk reads: 72 MB in 3.05 seconds = 23.64 MB/sec結果は変わらず。 ●syslogd 当面は特にいじらないことにする |