untitled

Similar documents
HP OpenSource ブループリント

# mv httpd tar.gz /usr/local/src /usr/local/src # tar zxvf httpd tar.gz make #./configure # make # make install Apache # /usr/local/apac

MySQL Server 5.0 Load Data ベンチマーク

MySQL5.0データベース ログファイルおよびステータスの収集

スライド 1

CMS入門

Northern Lights Server

A : kerl kerl Erlang/OTP Erlang/OTP 2 2 Elixir/Phoenix URL 2 PDF A.2 Bash macos.bash_profile exp

HP OpenSource ブループリント

DB2 UDB For LinuxのCLUSTERPRO上での稼動確認

w w w 2

Docker Haruka Iwao Storage Solution Architect, Red Hat K.K. February 12, 2015

今から間にあう仮想化入門とXenについて

はじめに このドキュメントではftServerに関する障害調査を行う際に 必要となるログ データの取得方法を説明しています ログ データの取得には 初期解析用のデータの取得方法と 詳細な調査を行うときのデータ取得方法があります 特別な理由でOS 側のログが必要となった場合には RHELログの取得につ

INR-HG5579a_Netshut_Guide_Linux-Solaris_.doc

Oracle HTML DB 導入ガイド

HeartCoreインストールマニュアル


Appendix

Microsoft Word - D JP.docx

HeartCoreインストールマニュアル(PHP版)

HeartCore(PHP 版 ) インストール手順について説明いたします なお 本資料は 例として下記内容を前提として説明しております 環境情報 対象 OS: Linux ( ディストリビューション : Red Hat Enterprise Linux Server) APサーバ : Apache

PGECons技術ドキュメントテンプレート Ver.3

HP ProLiant Gen8とRed Hatで始めるHadoop™ ~Hadoop™スタートアップ支援サービス~

PostgreSQLによる データベースサーバ構築技法

CentOSv2_furoku

PowerGres on Linuxマニュアル

~~~~~~~~~~~~~~~~~~ wait Call CPU time 1, latch: library cache 7, latch: library cache lock 4, job scheduler co

インストール取扱説明書

1,.,,,., RDBM, SQL. OSS,, SQL,,.

インストール取扱説明書

HP High Performance Computing(HPC)

etrust Access Control etrust Access Control UNIX(Linux, Windows) 2

復習 (SQL 文 ) 3/6 復習 (SQL 文 ) 4/6 表の作成 CREATE TABLE...; 表の削除 DROP TABLE テーブル名 ; 表内のデータが全て消えてしまう. 表内のデータを得る SELECT 列名 FROM 表名...; 表にデータを挿入する. INSERT INTO

PowerGres on Linuxマニュアル

自己紹介 とみたまさひろプログラマー (Ruby & C) 日本 MySQLユーザ会代表

OpenAM 13 インストールガイド

DianaScope インストレーションマニュアル

sanboot-whitepaper.pdf

PowerPoint Presentation

Server Backup Manager 5.0 Debian および Ubuntu システムへの Server Backup Free のインストール 1. APT-GET をしてServer Backup Free をインストールする 2. Server Backup Free のインストール

w w 2

VNSTProductDes3.0-1_jp.pdf

CLUSTERPRO ファイルサーバ監視オプション編

Systemwalker IT Service Management Systemwalker IT Service Management V11.0L10 IT Service Management - Centric Manager Windows

3. XML, DB, DB (AP). DB, DB, AP. RDB., XMLDB, XML,.,,.,, (XML / ), XML,,., AP. AP AP AP 検索キー //A=1 //A=2 //A=3 返却 XML 全体 XML 全体 XML 全体 XMLDB <root> <A

RouteMagic Controller RMC-MP200 / MP Version

Microsoft Word - qtsi_120246jp_rhev.doc

HP Server tc2120 Microsoft Windows 2000 Server SP3 HP P

Microsoft Word - # _Quick_Install_Guide_Final.doc

dvi

appli_HPhi_install

HP High Performance Computing(HPC)

スライド 1

MySQL5.0データベース ログファイルおよびステータスの収集

RouteMagic Controller( RMC ) 3.6 RMC RouteMagic RouteMagic Controller RouteMagic Controller MP1200 / MP200 Version 3.6 RouteMagic Controller Version 3


PRIMERGY RX300 S2 システム構成図

HPE Moonshot System ~ビッグデータ分析&モバイルワークプレイスを新たなステージへ~

3.2 Linux root vi(vim) vi emacs emacs 4 Linux Kernel Linux Git 4.1 Git Git Linux Linux Linus Fedora root yum install global(debian Ubuntu apt-get inst

Microsoft PowerPoint - 2-MySQL50_intro.ppt

防災マップ作成システムの開発業務基本設計書

CLUSTERPRO 3.x データベース監視オプション編

IWF30SupportMatrix_v3.8.xlsx

eラーニング資料 e ラーニングの制作目標 データベース編 41 ページデータベースの基本となる概要を以下に示す この内容のコースで eラーニングコンテンツを作成予定 データベース管理 コンピュータで行われる基本的なデータに対する処理は 次の 4 種類です 新しいデータを追加する 既存のデータを探索

DB層レポート5章

1 ex01.sql ex01.sql ; user_id from (select user_id ;) user_id * select select (3+4)*7, SIN(PI()/2) ; (1) select < > from < > ; :, * user_id user_name

XOOPS Cube インストールマニュアル

Microsoft Word - nvsi_090196_r1_vaultdr_offline_rhel_dualpath.doc

MOTIF XF 取扱説明書

N Express5800/R320a-E4 N Express5800/R320a-M4 ユーザーズガイド

Express5800/R320a-E4, Express5800/R320b-M4ユーザーズガイド

Express5800/R320a-E4/Express5800/R320b-M4ユーザーズガイド

FileMaker ODBC and JDBC Guide

Add-onアプリケーション開発 - 環境構築マニュアル -

tkk0408nari

第5回お試しアカウント付き並列プログラミング講習会

ESMPRO/ServerAgent Extension インストレーションガイド

別紙 : 検証環境の構築手順 ( 章 ) 1. サーバ設定 1.1 IP アドレス設定 サーバは以下の 6 台を用いる pgpool-ii サーバ 2 台 DB サーバ 3 台 上位サーバ 1 台 OS は全サーバで CentOS 6.4 x86_64 とする pgpool-ii のサー

,, create table drop table alter table

<Documents Title Here>

100123SLES11HA.pptx

PowerGres on Linux HAマニュアル

WebSphere Application Server V5.0 for Linux Ver. 1.11

nakayama15icm01_l7filter.pptx

Red Hat Enterprise Linux AS (v.3 for IPF) Update 3

Microsoft Word - nvsi_050110jp_netvault_vtl_on_dothill_sannetII.doc

Nios® II HAL API を使用したソフトウェア・サンプル集 「Modular Scatter-Gather DMA Core」

ftServerでのログの取得方法の概要

untitled

Mail_Spam_Manual_120815b

Microsoft Word - VPN...[.U.K.C.hLinux doc

,,.,,., II,,,.,,.,.,,,.,,,.,, II i

untitled

DCL intro Manual for Ubuntu11.10

090801OSC新潟.ppt

HP StoreVirtual(LeftHand)

RouteMagic Controller RMC-MP200 / MP Version

PostgreSQL 9.3パーティションの効果検証

Microsoft PowerPoint pptx

Transcription:

HP OpenSource MySQL Server 5.0 Red Hat Enterprise Linux 4 ver 1.5

MySQL Red Hat Enterprise Linux 4 Super Smack Super Smac MySQL Super Smack RHEL4 1 2 MySQL SuperSmack SuperSmack 3 SuperSmack MySQL 4 MySQL 1 file_size_equiv Super Smack file_size_equiv 2 smack Super Smack 2

... 2... 2... 2... 3 1....4 1.1.... 4 2.... 5 2.1. MySQL Server... 5 2.1.1. MySQL Server... 5 2.1.2. MySQL... 5 2.1.3. MySQL... 5 2.1.4.... 5 2.2.... 6 2.2.1. MySQL Server... 6 2.2.2. Super Smack... 6 2.2.3. SuperSmack... 6 2.2.4. SuperSmack... 6 2.2.5. SuperSmack... 7 3.... 8 3.1.... 8 3.2.... 9 3.3.... 10 4. MySQL... 11 4.1.... 11 4.2.... 11 4.3. query... 11 4.4.... 12 4.5.... 13 4.5.1.... 13 4.5.2. CPU... 14 4.5.3.... 15 4.6. query cache 0... 16 4.6.1.... 16 4.6.2. CPU... 17 4.6.3.... 17 1 file_size_equiv... 18 2 smack... 19 3

1. 1.1. 2 Proliant MySQL Enterprise Server Hardware HP Proliant DL380G5 CPU Intel Xeon E5320(1.86GHz) 4Core 1 Memory 4GB OS Red Hat Enterprise Linux 4 update 4 (x86) MySQL MySQL Enterprise Server 5.0.36 (Linux, i686, glibc-2.3, norpm ) Hostname dl380g5node1 Hardware HP Proliant DL380G5 CPU Intel Xeon E5320(1.86GHz) 4Core 2 Memory 16GB OS Red Hat Enterprise Linux 4 update 4 (x86) Benchmark Tool super-smack-1.3 Hostname dl380g5node2 Network HP Procurve 2724 1 4

2. 2.1. MySQL Server MySQL Server 2.1.1. MySQL Server MySQL Enterprise Server MySQL Enterprise Server 5.0 tar.gz MySQL /usr/local/mysql MySQL Server MySQL $ su - # /usr/sbin/groupadd mysql # /usr/sbin/useradd -g mysql -m mysql # cd /usr/local # tar zxvf mysql-enterprise-gpl-5.0.36-linux-i686-glibc23.tar.gz # chown -R mysql:mysql mysql-enterprise-gpl-5.0.36-linux-i686-glibc23 # ln -s mysql-enterprise-gpl-5.0.36-linux-i686-glibc23 mysql # cd mysql # cp support-files/my-innodb-heavy-4g.cnf /etc/my.cnf #./scripts/mysql_install_db --user=mysql #./bin/mysqld_safe --user=mysql & 2.1.2. MySQL 2 $ /usr/local/mysql/bin/mysql -u root mysql> grant all on *.* to 'root'@'%' identified by 'root'; mysql> set password for root @ localhost = password( root ); 'root' 2.1.3. MySQL : mysql> select host, user from mysql.user; +---------------+------+ host user +---------------+------+ % root localhost root +---------------+------+ 2 rows in set (0.00 sec) : mysql> drop user ''@'localhost'; ^^^ ^^^^^^^^^ 2.1.4. CPU IO sysstat # rpm -qa grep sysstat # rpm -ivh --test /tmp/sysstat-5.0.5-11.rhel4.i386.rpm : sysstat-5.0.5-11.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e Preparing... ########################################### [100%] # rpm -ivh /tmp/sysstat-5.0.5-11.rhel4.i386.rpm : sysstat-5.0.5-11.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e 5

Preparing... ########################################### [100%] 1:sysstat ########################################### [100%] 2.2. SuperSmack 2.2.1. MySQL Server Super Smack1.3 MySQL MySQL $ su - # /usr/sbin/groupadd mysql # /usr/sbin/useradd -g mysql -m mysql # cd /usr/local # tar zxvf mysql-enterprise-gpl-5.0.36-linux-i686-glibc23.tar.gz # chown -R mysql:mysql mysql-enterprise-gpl-5.0.36-linux-i686-glibc23 # ln -s mysql-enterprise-gpl-5.0.36-linux-i686-glibc23 mysql # cd mysql # cp support-files/my-innodb-heavy-4g.cnf /etc/my.cnf #./scripts/mysql_install_db --user=mysql 2.2.2. Super Smack Super Smack version 1.3 http://vegan.net/tony/supersmack/ 2007 6 Super Smack version1.3(super-smack-1.3.tar.gz) 2.2.3. SuperSmack SuperSmack MySQL Server MySQL Server 1 () 1 1 MySQL Server listen (3306) (test ) Super Smack # su - mysql (*) $ cd ~/mysql_work $ tar zxvf /tmp/super-smack-1.3.tar.gz $ cd super-smack-1.3 (*: mysql SuperSmack mysql ) 2.2.4. SuperSmack super-smack src/dictionary.cc 6

#define MAX_FILE_LINE 512 #define MAX_FILE_LINE 4096 src/smack.h #define USE_FILE_OFFSET64 #define USE_LARGEFILE64 src/query.cc void Query_charge::fire(Client* cli)... int q_time = (end.tv_sec - start.tv_sec)*1000 + (end.tv_usec - start.tv_usec)/1000;...... int q_time = (end.tv_sec - start.tv_sec)*1000000 + (end.tv_usec - start.tv_usec);... 2.2.5. SuperSmack super-smack $ cd /home/mysql/mysql_work/super-smack-1.3 $ LIBZ_LIB="-lmygcc -lm"./configure --prefix=/usr/local/supersmack/ \ --with-mysql --with-mysql-lib=/usr/local/mysql/lib \ --with-mysql-include=/usr/local/mysql/include $ make $ su # make install (* \ ) super-smack 7

3. 3.1. Super Smack Smack Smack client table dictionary query main MySQL Server Super Smack smack select-key.smack select-key.smack SuperSmack $ cat smacks/select-key.smack client "admin" // client user "root"; // MySQL Server MySQL host "localhost"; // MySQL Server db "test"; // pass "root"; // MySQL socket "/tmp/mysql.sock"; table "http_auth" client "admin"; // table // client // DDL(Data Definition Language) // http_auth create create "create table http_auth (username char(25) not null primary key, pass char(25), uid integer not null, gid integer not null ); min_rows "9000"; // data_file "words.dat"; // // data_file gen_data_file "gen-data -n 9000 -f %12-12s%n,%25-25s,%n,%d"; dictionary "word" // dictionary type "rand"; // source_type "file"; // source "words.dat"; // delim ","; // file_size_equiv "0"; // // super-smack // 45000 0 // 1 file_size_equiv query "select_by_username" // query // query "select * from http_auth where username = '$word'"; type "select_index"; // has_result_set "y"; // y parsed "y"; // $word y 8

client "smacker1" // client user "root"; // MySQL Server client pass "root"; // MySQL host "localhost"; // MySQL Server db "test"; // socket "/tmp/mysql.sock"; query_barrel "2 select_by_username"; // // select_by_username // query main // main smacker1.init(); // smacker1 smacker1.set_num_rounds($2); // smacker1 query_barrel smacker1.create_threads($1); // smacker1 smacker1.connect(); // MySQL smacker1.unload_query_barrel(); // smacker1 smacker1.collect_threads(); // smacker1 smacker1.disconnect(); // MySQLServer smack (select-key.smack) MySQL localhost SuperSmack MySQL MySQL Server user password host "localhost"; user root ; test ; pass ; host "mysql_server_host"; user root ; pass root ; Super Smack MySQL Super Smack gen-data super-smack Table MySQL MySQL super-smack MySQL 3.2 file_size_equiv 1 file_size_equiv file_size_equiv "0"; 3.2. super-smack # export PATH=/usr/local/supersmack/bin:$PATH 9

(/var/smack-data)supersmack $ hostname host1 $ mkdir /var/smack-data $hostname host2 $ mkdir /var/smack-data SuperSmack MySQL super-smack $ cd /home/mysql/mysql_work/super-smack-1.3 $ super-smack smacks/select-key.smack 10 1000 Table 'http_auth' does not meet condtions, will be dropped Creating table 'http_auth' Populating data file '/var/smack-data/words.dat' with shell command 'gen-data -n 9000 -f %12-12s%n,%25-25s,%n,%d' Loading data from file '/var/smack-data/words.dat' into table 'http_auth' Error running query load data infile '/var/smack-data/words.dat' into table http_auth fields terminated by ',':Can't get stat of '/var/smack-data/words.dat' (Errcode: 2) super-smack: aborting on failed query (words.dat) MySQL $ scp /var/smack-data/words.dat [mysql_server_host]:/var/smack-data/ words.dat 100% 512KB 511.9KB/s 00:00 super-smack $ super-smack smacks/select-key.smack 10 1000 Table 'http_auth' does not meet condtions, will be dropped Creating table 'http_auth' Loading data from file '/var/smack-data/words.dat' into table 'http_auth' Table http_auth is now ready for the test Query Barrel Report for client smacker1 connect: max=2ms min=1ms avg= 1ms from 10 clients Query_type num_queries max_time min_time q_per_s select_index 20000 0 0 18894.31 super-smack smack () smack MySQL http_auth # /usr/local/mysql/bin/mysql -u root mysql> select count(*) from test.http_auth; +----------+ count(*) +----------+ 9000 +----------+ 3.3. words.dat MySQL $ hostname host1 $ rm /var/smack-data/words.dat $ hostname host2 $ rm /var/smack-data/words.dat $ mysql u root test mysql> drop table http_auth; 10

4. MySQL 4.1. 2 PC Super Smack MySQL Enterprise Server Hardware HP Proliant DL380G5 CPU Intel Xeon E5320(1.86GHz) 4Core 1 4GB OS Red Hat Enterprise Linux 4 update 4 (x86) MySQL MySQL Enterprise Server 5.0.36 (Linux, i686, glibc-2.3, norpm ) dl380g5node1 DISK 146GB8 10Krpm Hardware HP Proliant DL380G5 CPU Intel Xeon E5320(1.86GHz) 4Core 2 16GB OS Red Hat Enterprise Linux 4 update 4 (x86) super-smack-1.3 dl380g5node2 DISK 146GB8 10Krpm HP Procurve 2724 4.2. super-smack 3 test http_auth ( 1 table ) 1KB 1,000,000 ( 1G) 2,000,000 ( 2G) 10,000,000 ( 10G) test http_auth 1 4G 3 4.3. query MySQL query 2 select select * from table where username = xxxxx ; (xxxxx username ) update update table set pass= where username = xxxxx; ( xxxxx username ) 5 select 2 select update 101 3 select update 51 4 select update 11 5 update 11

4.4. 1 select update MySQL CPU 1GB, 2GB, 10GB 1 5 () 1, 2, 4, 8, 16, 32, 64 GB 4 smack 12

4.5. 4.5.1. 2 query/sec 1G 3 query/sec 2G 13

4.5.2. CPU 4 query/sec 10G 5 CPU 1G 14

6 CPU 2G 7 CPU 10G 4.5.3. 2 1G select select select update 5 CPU 1G 4050CPU 15

4.6. query cache 0 /etc/my.cnf query_cache_size 1G query_cache_size = 64M query_cache_size = 0 4.6.1. 8 query/sec 1G query cache = 0 16

4.6.2. CPU 9 CPU 1G query cache = 0 4.6.3. 8 1G query cache select 4 select 1 17

1 file_size_equiv Super Smack file_size_equiv file_size_equiv SuperSmack dictionary dictionary "word" type "rand"; source_type "file"; source "words.dat"; delim ","; file_size_equiv "45000"; words.dat, 18

2 smack smack select update client "admin" user "root"; host "mysql_server_host"; db "test"; pass "root"; port "3306"; // MySQL table "http_auth" client "admin"; // 1Kbyte create "create table http_auth (username char(25) not null primary key, pass char(25), address1 char(255), address2 char(255), address3 char(255), address4 char(255), uid integer not null, gid integer not null ) ENGINE=InnoDB"; min_rows "1000000"; data_file "words.dat"; gen_data_file "gen-data -n 1000000 -f %12-12s%n,%25-25s,%255s,%255s,%255s,%255s,%n,%d"; // gen-data // 1000000 Gbyte1KB1000000 dictionary "word" type "rand"; source_type "file"; source "words.dat"; delim ","; file_size_equiv "0"; query "select_by_username" query "select * from http_auth where username = '$word'"; type "select_index"; has_result_set "y"; parsed "y"; query "update_by_username" // update query query "update http_auth set pass='$word' where username = '$word'"; type "update_index"; has_result_set "y"; parsed "y"; client "smacker" user "root"; pass "root"; host "mysql_server_host"; // MySQL db "test"; port "3306"; query_barrel "1 select_by_username 1 update_by_username"; 19

main smacker.init(); smacker.create_threads($1); smacker.set_num_rounds($2); smacker.connect(); smacker.unload_query_barrel(); smacker.collect_threads(); smacker.disconnect(); 20

03-5304-6660 9:0019:00 10:0018:00 Linux/ http://www.hp.com/jp/linux/ 2007 7 HP (c) Copyright 2007 Hewlett-Packard Development Company,L.P.