2004-01-01から1年間の記事一覧
●インストール ./contrib/dbsize gmake gmake installpsql -U postgres sampledb -f dbsize.sql●実行 (1) データベースのデータ領域 psql -U postgres -q sampledb select database_size("sampledb");select database_size('customer');(2) テーブルサイズ s…
TPCCベンチマーク ShuffleDeck関数に以下を追加。 またNO_ONLYなどの定義をbase.hにて定義。#ifdef NO_ONLY for(count=0; count #endif #ifdef PAY_ONLY for(count=0; count #endif #ifdef OS_ONLY for(count=0; count #endif #ifdef DELI_ONLY for(count=0;…
フェドラのアップデート http://fedora.redhat.com/download/updates.html
select relname,100* heap_blks_hit::real / (heap_blks_read + heap_blks_hit) from pg_statio_all_tables where heap_blks_hit > 0 and schemaname='public';
# このテキストは、PostgreSQLにおいて、 # Hugetlbをもちいた共有メモリの使用法について説明するものです # (2004/11/26)1 Linuxに関する留意点 (kernel2.6) 1.1 HUGETLBに関するコンフィグ カーネルコンパイル時に HUGETLBが使用できるようにコンフィグ設…
ログ関係だったらこれ! pg_resetxlog -f $PGDATA
コピーをとる cp src/backend/storage/ipc/ipci.c /home/postgres/tmp/postgresql-7.4.5/src/backend/storage/ipc/ipci.c.origパッチをつくる diff -c postgresql-7.4.5/src/backend/storage/ipc/ipci.c.orig postgresql-7.4.5/src/backend/storage/ipc/ipci…
まず、PGHOME/data内の「posgtresql.conf」を変更しやす。stats_start_collector stats_command_string stats_block_level stats_row_level stats_reset_on_server_startを全て true に設定する。デフォじゃコメントアウトされてるはず。んで、以下のSQLをpg…
http://www.stackasterisk.jp/tech/dataBase/postgresTuning01_03.jsp
☆通常インストール時 creating template1 database in /usr/local/pgsql02/data/base/1... how may do you get size for shm ? BufferShmemSize(); size=8284092 LockShmemSize(maxBackends) ; size=9915911 XLOGShmemSize(); size=9981999 CLOGShmemSize();…
#include #include #include #include #include #include #include #include #include #define LENGTH (4 * 1024 * 1024) #define HPMASK (4 * 1024 * 1024 - 1) #define HPALIGN(pgsize) *1; //size=300; // get a shared memory segment. if*2 perror("shm…
kernel2.6.7におきまして、 736~738行をコメントアウトその後、postgreSQLを書き換え コンパイル インストールすると、initdb時creating template1 database in /usr/local/pgsql02/data/base/1... FATAL: shmat(id=6291471) failed: 無効な引数ですたぶん英…
メーリングリストでの話題。 ちょっとよんでみるよ。 http://search.luky.org/linux-kernel.2004/msg14960.htmlそんなかででてきた「capset」について http://www.linux.or.jp/JM/html/LDP_man-pages/man2/capget.2.htmlケーパビリティについて http://www.h…
カーネル設定 opcontrol --vmlinux=/boot/vmlinux- デーモン起動 opcontrol init イベント設定 opcontrol -e ITLB_REFERENCE:3000 プロファイルスタート opcontrol -s 結果をみる opcontrol --dump opreport☆root以下 .oprofile/daemonrc
mmapがkernel2.6.9から変わったらしく、sonodaベンチが動かないので カーネルを2.6.8にしようとしたらLOOPなんたらってエラーがでて 試行錯誤のすえどうにか2.6.8.1をいれたけどインターネットのコンフィグがあまかったねってことさ。 とりあえずベンチマー…
http://www.ncad.co.jp/~komata/c-kouza13.htmhttp://www.linux.or.jp/JM/html/LDP_man-pages/man2/shmget.2.htmlhttp://www.linux.or.jp/JM/html/LDP_man-pages/man2/shmop.2.htmlhttp://sunlee.muraoka.info.waseda.ac.jp/~kawakoya/research/pukiwiki/puk…
sonodaベンチ Matrix.c Matrix_huge.cに引き続き、Matrix_shm.c Matrix_shm_huge.cを見よう見まねで作ってみる。 嘘くさいがとりあえず動く。Matrix_huge.cがrootでしか動かない問題は、マウント時にユーザID指定で解決。 mount none /mnt/hugetlb -t hugetl…
①postgresqlソース内のshm.cは使われていない様子②shmget()などがどこで使われているか src/backendにて % grep shmget -r -n その結果、 ./proc/sysv_shmem.c にありそう。③どの関数から呼び出されているか 1) ./port/sysv_shmem.cInternalIPCMemoryCreate(…
・hugetlb ・config_profiling、config_oprofile ・sis900 ネットワーク ・以前のカーネルの設定を持ち越す
●Oprofile本拠地? http://oprofile.sourceforge.net/news/●そのなかの文書 マニュアル(英語) http://oprofile.sourceforge.net/doc/●Red Hat Enterprise Linux 3: システム管理ガイド http://squidward.mit.edu/rhel-doc/RH-DOCS/rhel-sag-ja-3/ch-oprofile…
opcontrol --vmlinux=/usr/src/linux-2.6.7/vmlinux いやできませんでしたけどね。http://www.linux-m32r.org/jpn/download.html http://www.linux.or.jp/JF/JFdocs/kernel-docs-2.6/basic_profiling.txt.html
http://squidward.mit.edu/rhel-doc/RH-DOCS/rhel-sag-ja-3/pt-system-monitoring.html
●PostgreSQLをインストールする src/include/pg_config_manual.h INDEX_MAX_KEY=64make install-all-headers現在別にPostgreSQLをインストール済みなので、別の場所にインストールをこころみる。su mkdir -p /usr/local/psql2 chown postgres:postgres /usr/…
http://www.osdl.jp/lab_activities/kernel_testing/osdl_database_test_suite/http://www.osdl.org/lab_activities/kernel_testing/osdl_database_test_suite/osdl_dbt-2/・メーリングリスト http://sourceforge.net/mailarchive/forum.php?forum_id=11273
http://www.stackasterisk.jp/tech/dataBase/postgresTuning01_01.jsp
ブートしたいカーネル2.6を選択して、e(EDIT)。 2つ目でe なんたらかんたら hugepages= b(boot)起動し、mountする. mount none /mnt/ -t hugetlbfs
http://www.atmarkit.co.jp/ad/sonic/sonic2004/sonic0407.html
http://pcweb.mycom.co.jp/articles/2004/09/22/postgres8/
http://www.atmarkit.co.jp/flinux/rensai/linuxtips/553fedoraupdateapt.html http://www.atmarkit.co.jp/flinux/rensai/linuxtips/636searchaptpk.html
bz2の解凍 bunzip2