Changes between Version 3 and Version 4 of Performance


Ignore:
Timestamp:
May 29, 2013, 8:55:54 AM (11 years ago)
Author:
Dimitar Misev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Performance

    v3 v4  
    11[[PageOutline]]
    22
    3 = Performance =
     3= Guidelines =
    44
    5 == Ingestion measurements ==
     5= Benchmarks =
     6
     7== Ingestion ==
    68
    79Below are the results of ingesting one dataset using various tilings and postgres parameters.
    810
    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 ===
    1012
    11 === Regular tiling ===
     13The dataset is 150 png rgb images of size 1024x608, so that each image is 1867776 bytes uncompressed, or 280 MB in total.
    1214
    1315 * Default postgres parameters:
     
    2123|| 0:31,0:31,0:149 || 460800 || 35 minutes || 184M || '''19416M''' || 267 MB || 18 GB ||
    2224
     25=== Regular tiling + VACUUM ===
     26
     27The dataset is 50 png rgb images of size 1024x608, so that each image is 1867776 bytes uncompressed, or 89 MB in total.
     28
     29VACUUM = `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
    2336= PostgreSQL tips =
    2437
     
    2942{{{
    3043SELECT pg_size_pretty(count(loid) * 2048) FROM pg_largeobject;
     44}}}
     45
     46== Total size of BLOBs 2 ==
     47{{{
     48SELECT tablename,
     49       pg_size_pretty(size) AS size_pretty,
     50       pg_size_pretty(total_size) AS total_size_pretty
     51FROM (SELECT *, pg_relation_size(schemaname||'.'||tablename) AS size,
     52                pg_total_relation_size(schemaname||'.'||tablename) AS total_size
     53      FROM pg_tables) AS TABLES
     54WHERE TABLES.tablename = 'pg_largeobject'
     55ORDER BY total_size DESC;
    3156}}}
    3257
     
    4065}}}
    4166
    42 == Size of tables ==
     67== Size of RASBASE tables ==
    4368{{{
    4469SELECT tablename,
     
    5378
    5479== Reset WAL ==
    55 1. `pg_controldata $PGDATA | egrep '(NextXID|NextOID)'`
    56 {{{
    57 Latest checkpoint's NextXID:          0/946
    58 Latest checkpoint's NextOID:          18464
    59 }}}
    60801. `service stop postgresql`
    61 1. `sudo -u postgres pg_resetxlog -o 18464 -x 946 $PGDATA`
     811. `sudo -u postgres pg_resetxlog $PGDATA`