sstyle

Рейтинг
100
Регистрация
26.10.2005

Den73

Dedicated:

[root@host unixbench-5.1.2]# ./Run

Can't exec "make": No such file or directory at ./Run line 787.

Can't exec "make": No such file or directory at ./Run line 789.

**********************************************

Run: "make all" failed; aborting

[root@host unixbench-5.1.2]# dd if=/dev/zero of=/home/file bs=4096k count=100

100+0 records in

100+0 records out

419430400 bytes (419 MB) copied, 2.98372 seconds, 141 MB/s

[root@host unixbench-5.1.2]# dd if=/home/file of=/dev/null bs=4096k

100+0 records in

100+0 records out

419430400 bytes (419 MB) copied, 0.560123 seconds, 749 MB/s

VPS:

[root@host unixbench-5.1.2]# ./Run

gcc -o ./pgms/arithoh -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Darithoh ./src/arith.c

make: gcc: Command not found

make: *** [pgms/arithoh] Error 127

Checking distribution of files

./pgms exists

./src exists

./testdir exists

./tmp exists

./results exists

gcc -o ./pgms/arithoh -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Darithoh ./src/arith.c

make: gcc: Command not found

make: *** [pgms/arithoh] Error 127

**********************************************

Run: "make all" failed; aborting

[root@host unixbench-5.1.2]# dd if=/dev/zero of=/home/file bs=4096k count=100

100+0 records in

100+0 records out

419430400 bytes (419 MB) copied, 1.99983 seconds, 210 MB/s

[root@host unixbench-5.1.2]# dd if=/home/file of=/dev/null bs=4096k

100+0 records in

100+0 records out

419430400 bytes (419 MB) copied, 1.46255 seconds, 287 MB/s

А что нужно установить чтобы пофиксить bc: command not found

:) нашел..

Так а как разобраться с мускулом. Мне знаний не хватает чтобы определить где причина, и нормально ли работает мускул (

klamas:
А это маловато :)

там и посещаемость не такая большая, но ок, подниму.

А вот результаты локальные:

VPS:

[root@host ~]# wget -O /dev/null domain.ru

--2011-04-29 22:01:13-- http://domain.ru/

Resolving domain.ru... XX.XX.XX.XX

Connecting to domain.ru|XX.XX.XX.XX|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: unspecified [text/html]

Saving to: `/dev/null'

[ <=> ] 14,307 --.-K/s in 0.008s

2011-04-29 22:01:13 (1.82 MB/s) - `/dev/null' saved [14307]

Dedicated:

[root@host ~]# wget -O /dev/null domain.ru

--2011-04-29 22:03:14-- http://domain.ru/

Resolving domain.ru... XXX.XXX.XXX.XXX

Connecting to domain.ru|XXX.XXX.XXX.XXX|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: unspecified [text/html]

Saving to: `/dev/null'

[ <=> ] 14,307 --.-K/s in 0.02s

2011-04-29 22:03:16 (602 KB/s) - `/dev/null' saved [14307]

Тот же тест, но не страница, а только картинка 42Кб весом:

VPS:

100%[===================================================================================================================>] 43,381 --.-K/s in 0s

2011-04-29 22:35:19 (1.30 GB/s) - `/dev/null' saved [43381/43381]

Dedicated:

100%[===================================================================================================================>] 43,381 --.-K/s in 0s

2011-04-29 22:40:33 (899 MB/s) - `/dev/null' saved [43381/43381]

klamas:
У вас ведь Х2, у него памяти 1024 МБ и вот это странно выглядит

На самом деле 2 гига. Не знаю почему, но ISPManager показывает тоже 2гига и команда top вот что выводит

Tasks: 110 total, 1 running, 109 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: 2057752k total, 1871440k used, 186312k free, 172492k buffers

Swap: 4095992k total, 88k used, 4095904k free, 1416768k cached

немного поковырял конфиг мускулы с помощью скрипта, теперь так:

[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.0.77-log
[OK] Operating on 64-bit architecture

-------- Storage Engine Statistics -------------------------------------------
[--] Status: -Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 20M (Tables: 525)
[--] Data in InnoDB tables: 864K (Tables: 37)
[!!] Total fragmented tables: 3

-------- Security Recommendations -------------------------------------------
[OK] All database users have passwords assigned

-------- Performance Metrics -------------------------------------------------
[--] Up for: 4s (9 q [2.250 qps], 7 conn, TX: 7K, RX: 569)
[--] Reads / Writes: 100% / 0%
[--] Total buffers: 58.0M global + 832.0K per thread (100 max threads)
[OK] Maximum possible memory usage: 139.2M (6% of installed RAM)
[OK] Slow queries: 0% (0/9)
[OK] Highest usage of available connections: 1% (1/100)
[OK] Key buffer size / total MyISAM indexes: 16.0M/8.0M
[!!] Query cache efficiency: 0.0% (0 cached / 4 selects)
[OK] Query cache prunes per day: 0
[OK] Temporary tables created on disk: 0% (0 on disk / 2 total)
[OK] Thread cache hit rate: 85% (1 created / 7 connections)
[OK] Table cache hit rate: 25% (3 open / 12 opened)
[OK] Open file limit used: 0% (6/1K)
[OK] Table locks acquired immediately: 100% (12 immediate / 12 locks)
[!!] Connections aborted: 28%
[OK] InnoDB data size / buffer pool: 864.0K/8.0M

вот указываю URL скрипта на хосте без мускула, сразу нормальный отклик

KM.UA:
yum -y install which

спасибо, вот что выдал скрипт:

-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.0.77-log
[OK] Operating on 64-bit architecture

-------- Storage Engine Statistics -------------------------------------------
[--] Status: -Archive +BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 10M (Tables: 70)
[!!] InnoDB is enabled but isn't being used
[!!] BDB is enabled but isn't being used
[!!] Total fragmented tables: 1

-------- Performance Metrics -------------------------------------------------
[--] Up for: 44m 0s (5K q [2.272 qps], 148 conn, TX: 15M, RX: 1M)
[--] Reads / Writes: 75% / 25%
[--] Total buffers: 459.0M global + 12.4M per thread (100 max threads)
[OK] Maximum possible memory usage: 1.7G (84% of installed RAM)
[OK] Slow queries: 0% (45/5K)
[OK] Highest usage of available connections: 23% (23/100)
[OK] Key buffer size / total MyISAM indexes: 386.0M/3.0M
[OK] Key buffer hit rate: 98.8% (20K cached / 241 reads)
[OK] Query cache efficiency: 69.6% (3K cached / 4K selects)
[OK] Query cache prunes per day: 0
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 100 sorts)
[OK] Temporary tables created on disk: 0% (0 on disk / 31 total)
[OK] Thread cache hit rate: 84% (23 created / 148 connections)
[OK] Table cache hit rate: 81% (26 open / 32 opened)
[OK] Open file limit used: 1% (52/4K)
[OK] Table locks acquired immediately: 100% (2K immediate / 2K locks)

-------- Recommendations -----------------------------------------------------
General recommendations:
Add skip-innodb to MySQL configuration to disable InnoDB
Add skip-bdb to MySQL configuration to disable BDB
Run OPTIMIZE TABLE to defragment tables for better performance
MySQL started within last 24 hours - recommendations may be inaccurate
Den73:
mysqltuner.pl но я думаю MySQL не причем.

пробовал. не запускается и ругается:

[root@host ~]# ./mysqltuner.pl

>> MySQLTuner 1.2.0 - Major Hayden <major@mhtx.net>
>> Bug reports, feature requests, and downloads at http://mysqltuner.com/
>> Run with '--help' for additional options and output filtering
Can't exec "which": No such file or directory at ./mysqltuner.pl line 249 (#1)
(W exec) A system(), exec(), or piped open call could not execute the
named program for the indicated reason. Typical reasons include: the
permissions were wrong on the file, the file wasn't found in
$ENV{PATH}, the executable in question was compiled for another
architecture, or the #! line in a script points to an interpreter that
can't be run for similar reasons. (Or maybe your system doesn't support
#! at all.)

Use of uninitialized value in scalar chomp at ./mysqltuner.pl line 250 (#1)
(W uninitialized) An undefined value was used as if it were already
defined. It was interpreted as a "" or a 0, but maybe it was a mistake.
To suppress this warning assign a defined value to your variables.

To help you figure out what was undefined, perl tells you what operation
you used the undefined value in. Note, however, that perl optimizes your
program and the operation displayed in the warning may not necessarily
appear literally in your program. For example, "that $foo" is
usually optimized into "that " . $foo, and the warning will refer to
the concatenation (.) operator, even though there is no . in your
program.

Use of uninitialized value in -e at ./mysqltuner.pl line 251 (#1)
[!!] Unable to find mysqladmin in your $PATH. Is MySQL installed?

Права на файл выставлял. все по мануалу

другой скрипт тоже:

[root@host ~]# ./tuning-primer.sh
MySQL Version 5.0.77-log x86_64

./tuning-primer.sh: line 497: bc: command not found
./tuning-primer.sh: line 498: bc: command not found
./tuning-primer.sh: line 499: bc: command not found
./tuning-primer.sh: line 500: bc: command not found
./tuning-primer.sh: line 501: bc: command not found
./tuning-primer.sh: line 502: bc: command not found

далее тесты идут но ошибка bc часто довольно.

А если не мускул тогда что может быть?

klamas:
ну а чего вы сравниваете производительность ноды для vps и X2...

ну в моем понимании dedicated мощнее и должен лучше работать

MajorHost:
Ни одна ПС никак не реагирует на IP. Ей все равно, один ИП или куча разных, если сайт ГС - он в индекс не попадет

у меня другая инфа ) но давайте все же просто подумаем как заполучить айпишники от Hetzner.

--

нарисовалась проблема. сайты были на VPS VQ12 и по данным хост-трекера ответ был около 0.6сек, перенес сайты на dedicated X2 ответ стал около 4 секунд. Причем конфиг и настройки прежние. Другой сервер Х2 на него перенесли сайт с хостинга, та же беда - 4 секунды ответ.

При стресс-тесте походу дела тупит MySQL но с этим буду разбираться, она и раньше так же была криво настроена.

MajorHost:
Зачем Вы хотите разгруппировать?

для продвижения лучше. будет странно если все сайты на одном айпишнике.. (сайты не сателлиты, но все равно..)

Всего: 243