WR250RとRMX250Sのおふろーど日記

WR250RとRMX250S(SJ13A)のオフロード日記です。 だいたい毎週末オフロード(林道、山)に行っているのでそのあたりで更新してます。

  •  

changi設定

Posted by えか On 11:57 0 コメント

Linuxサーバの高速化ということで
2chのchangi設定を参考にして作ってみました。
CentOS5 x64です。

/dev/shmの容量が微妙だったのでほとんど使用していなかったxenをやめて
ついでにkernelを更新して普通のkernelにしました。
そのための前記事の再起動です。

変更点:
Linuxで使用するのでmount_nullfs -> mount --bind
yumでパッケージ管理してますので/usr/localをRAMDISK転送しても意味が無いので
/usrをRAMDISKへ転送しています。

  1. #!/bin/sh  
  2.   
  3. mkdir /dev/shm/usr  
  4. rm -fr /dev/shm/usr/  
  5.   
  6. ( cd / ; tar cf - usr/bin )     | ( cd /dev/shm ; tar xBpf - )  
  7. ( cd / ; tar cf - usr/sbin )    | ( cd /dev/shm ; tar xBpf - )  
  8. ( cd / ; tar cf - usr/lib )     | ( cd /dev/shm ; tar xBpf - )  
  9. ( cd / ; tar cf - usr/libexec ) | ( cd /dev/shm ; tar xBpf - )  
  10.   
  11. mount --bind /dev/shm/usr/bin     /usr/bin  
  12. mount --bind /dev/shm/usr/sbin    /usr/sbin  
  13. mount --bind /dev/shm/usr/lib     /usr/lib  
  14. mount --bind /dev/shm/usr/libexec /usr/libexec  

Categories:

0 Response for the "changi設定"

コメントを投稿