Strona 1 z 1

Konfiguracja serwera dedykowanego do wielu zastosowań

: 14 lutego 2011, 15:34
autor: starach
Cześć.

Zamierzam wykupić w firmie hetzner.de, serwer dedykowany Root EQ 4. Jako że nie mogę nazwać się zaawansowanym użytkownikiem Linuksa potrzebuję waszej rady. (I tak pewnie bym się zapytał. W końcu ciężko jest wiedzieć wszystko).

Serwer ma za zadanie obsłużyć Apache z PHP5.3, ftpd, mysqld, kilka serwerów gier i serwer komunikacji głosowej Ventrilo. Chciałbym też na nim uruchomić mini repozytorium GIT, w którym mógłbym składować swoje projekty. Jeśli procesor pozwoli to pewnie go jeszcze czymś bez skrupułów wykorzystam.

Wiem, że ext2 różni się od ext3 tym, że ten drugi udostępnia indeksowanie. Tylko pytanie, czy ono:
[INDENT]a) jest mi potrzebne i
b) nie obciąża za bardzo dysku.[/INDENT]
Na dodatek szperając w swoim biurkowym Debianie odkryłem narzędzie mkfs.ext4, o którym nawet nie słyszałem. Nie wspominając nawet o tym, że wiele dobrego czytałem o ReiserFS. Bardzo bym Was tutaj prosił o doradzenie w tej sprawie.

Głównie zastanawia mnie sprawa systemu plików i podziału dysku, ale oczywiście wszelkiego rodzaju rady są mile widziane.

Pozdrawiam.

: 14 lutego 2011, 19:10
autor: Unit
Na ext2 co najwyżej stawiasz /boot. Ostatnio robiłem testy ext3 vs ext4 przy pomocy bonnie++ (procesor i7 920, 8GB RAM):
Ext3:

Kod: Zaznacz cały

/usr/sbin/bonnie++ -u root -d /test/ -s 16000  -m `hostname` -n 100

Using uid:0, gid:0.
Writing a byte at a time...done
Writing intelligently...done
Rewriting...done
Reading a byte at a time...done
Reading intelligently...done
start 'em...done...done...done...done...done...
Create files in sequential order...done.
Stat files in sequential order...done.
Delete files in sequential order...done.
Create files in random order...done.
Stat files in random order...done.
Delete files in random order...done.
Version  1.96       ------Sequential Output------ --Sequential Input- --Random-
Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
rp1          16000M   965  98 84116  13 42356   6  4762  80 105750   6 152.8   2
Latency             11008us   10715ms    8132ms   61722us     159ms    2193ms
Version  1.96       ------Sequential Create------ --------Random Create--------
rp1                 -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                100 57971  55 +++++ +++ 118385  75 88449  75 +++++ +++ 120231  76
Latency             32785us     734us     452us     307us      15us      30us
1.96,1.96,rp1,1,1296038340,16000M,,965,98,84116,13,42356,6,4762,80,105750,6,152.8,2,100,,,,,57971,55,+++++,+++,118385,75,88449,75,+++++,+++,120231,76,11008us,10715ms,8132ms,61722us,159ms,2193ms,32785us,734us,452us,307us,15us,30us
Ext4:

Kod: Zaznacz cały

/usr/sbin/bonnie++ -u root -d /test/ -s 16000  -m `hostname` -n 100
Using uid:0, gid:0.
Writing a byte at a time...done
Writing intelligently...done
Rewriting...done
Reading a byte at a time...done
Reading intelligently...done
start 'em...done...done...done...done...done...
Create files in sequential order...done.
Stat files in sequential order...done.
Delete files in sequential order...done.
Create files in random order...done.
Stat files in random order...done.
Delete files in random order...done.
Version  1.96       ------Sequential Output------ --Sequential Input- --Random-
Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
rp1          16000M   909  95 126531  11 63432   7  4366  76 172840   8 359.8   4
Latency             15910us   10589ms    6399ms   23319us   67729us     137ms
Version  1.96       ------Sequential Create------ --------Random Create--------
rp1                 -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                100 55485  67 +++++ +++ 68647  55 65010  76 +++++ +++ 92586  74
Latency               154us     770us     519us     245us      15us      36us
1.96,1.96,rp1,1,1296047800,16000M,,909,95,126531,11,63432,7,4366,76,172840,8,359.8,4,100,,,,,55485,67,+++++,+++,68647,55,65010,76,+++++,+++,92586,74,15910us,10589ms,6399ms,23319us,67729us,137ms,154us,770us,519us,245us,15us,36us