Changes between Version 3 and Version 4 of Performance
- Timestamp:
- May 29, 2013, 8:55:54 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Performance
v3 v4 1 1 [[PageOutline]] 2 2 3 = Performance=3 = Guidelines = 4 4 5 == Ingestion measurements == 5 = Benchmarks = 6 7 == Ingestion == 6 8 7 9 Below are the results of ingesting one dataset using various tilings and postgres parameters. 8 10 9 The dataset is 150 png rgb images of size 1024x608, so that each image is 1867776 bytes uncompressed, or 280 MB. 11 === Regular tiling === 10 12 11 === Regular tiling === 13 The dataset is 150 png rgb images of size 1024x608, so that each image is 1867776 bytes uncompressed, or 280 MB in total. 12 14 13 15 * Default postgres parameters: … … 21 23 || 0:31,0:31,0:149 || 460800 || 35 minutes || 184M || '''19416M''' || 267 MB || 18 GB || 22 24 25 === Regular tiling + VACUUM === 26 27 The dataset is 50 png rgb images of size 1024x608, so that each image is 1867776 bytes uncompressed, or 89 MB in total. 28 29 VACUUM = `VACUUM FULL pg_largeobject` 30 31 * Changed parameters in postgresql.conf: shared buffers = 1024 MB, temp_buffers = 8MB, fsync = off, synchronous_commit = off, wal_sync_method = fsync, full_page_writes = off, ''wal_buffers = 8MB, wal_writer_delay = 10000ms, checkpoint_segments = 16'' 32 33 || '''Tiling scheme''' || '''Tile size''' || '''Import time''' || '''DB size before''' || '''DB size after''' || '''BLOBs size''' || '''BLOBs size2''' || '''BLOBs after VACUUM''' 34 || 0:31,0:31,0:149 || 460800 || 7m 34s || 47M || '''2464M''' || 267 MB || 1776 MB || 96MB || 35 23 36 = PostgreSQL tips = 24 37 … … 29 42 {{{ 30 43 SELECT pg_size_pretty(count(loid) * 2048) FROM pg_largeobject; 44 }}} 45 46 == Total size of BLOBs 2 == 47 {{{ 48 SELECT tablename, 49 pg_size_pretty(size) AS size_pretty, 50 pg_size_pretty(total_size) AS total_size_pretty 51 FROM (SELECT *, pg_relation_size(schemaname||'.'||tablename) AS size, 52 pg_total_relation_size(schemaname||'.'||tablename) AS total_size 53 FROM pg_tables) AS TABLES 54 WHERE TABLES.tablename = 'pg_largeobject' 55 ORDER BY total_size DESC; 31 56 }}} 32 57 … … 40 65 }}} 41 66 42 == Size of tables ==67 == Size of RASBASE tables == 43 68 {{{ 44 69 SELECT tablename, … … 53 78 54 79 == Reset WAL == 55 1. `pg_controldata $PGDATA | egrep '(NextXID|NextOID)'`56 {{{57 Latest checkpoint's NextXID: 0/94658 Latest checkpoint's NextOID: 1846459 }}}60 80 1. `service stop postgresql` 61 1. `sudo -u postgres pg_resetxlog -o 18464 -x 946$PGDATA`81 1. `sudo -u postgres pg_resetxlog $PGDATA`