Thursday, 2010-02-18

*** KermitTheFragger has joined #ingres01:02
*** Mud has joined #ingres01:04
*** PaulM05 has joined #ingres01:39
*** gerhard has joined #ingres01:53
gerhardHi all01:55
PaulM05hi01:56
pborohi01:56
gerhardWhen creating tables with BLOB fields, Ingres creates iietab_xxx_yyy tables behind the scenes. How can I determine which iietab belongs to which table?01:58
pborofrom iifile_info iirc, lemme check01:59
pboroah, that reveals the name of the file of iietab_*, and the column mapping is in... hm01:59
gerhardWhat is the proper way to reorganize those iietab tables? usermod or sysmod?02:01
PaulM05it's in iiextended_relation02:03
pboroah, yup02:03
PaulM05etab_base is the table_reltid, etab_attid is the column num (as in iiattribute), and the actual table name is iietab_{hex of etab_base}_{hex of etab_extension}02:05
PaulM05gerhard - an ugly bit of SQL to find iietab names - http://ingres.pastebin.com/m7e1255b403:21
*** atrofast has joined #ingres03:25
gerhardWow! Thanks, will try03:26
PaulM05have sent that round the office to see if anyone can come up with something more elegant ;)03:30
*** Mud has quit IRC03:45
*** Mud has joined #ingres03:50
*** PaulM05 is now known as PaulM05_lunch04:08
*** cthibert has joined #ingres04:12
*** zxiiro has quit IRC05:02
gerhardPaul, your SQL http://ingres.pastebin.com/m7e1255b4 to check the iietab works, thanks again.05:28
gerhardIn line 3, there was a wrong quote sign around iietab_05:28
gerhardfixed version: http://ingres.pastebin.com/m2d7fb12805:31
*** grantc has joined #ingres05:45
*** rossand has joined #ingres05:46
*** ChanServ sets mode: +o rossand05:46
*** zxiiro has joined #ingres05:46
*** ChanServ sets mode: +v zxiiro05:46
*** PaulM05_lunch is now known as PaulM0506:00
PaulM05turns out that etab_extension is the reltid of the iietab table - so one of my colleagues came up with this: http://ingres.pastebin.com/m1a4116de - much simpler!06:01
gerhardNice.06:22
gerharda variant that shows iietab sizes in MB: http://ingres.pastebin.com/m5194fb0606:24
PaulM05nice06:29
*** mull has joined #ingres06:37
gerhardHas that iietab thingy already been included in Ingres 2.x or is it since Ingres 2006?07:18
PaulM05it's been around since blobs were introduced so definitely 2.x07:18
pborogerhard, what page size are you using for blobs?07:27
pboroI changed our etab page size to 8k long time ago, but switched back to 2k after I found out, that our BLOBs are 1-20k in size, but >80% under 2k... so a lot of wasted space07:28
pborolater on I forced the texts stored in blobs to be under 2k and switched to compressed table with regular varchars07:28
pboroI like a lot of postgresql's way of appending the new/modified data to the end of data files and vacuuming/reclaiming free space once a day (during night or so on), cause it's so much better with space efficiency... of course fixed size pages are great if the data is fixed size :)07:30
pboroI wish it was possible to make etabs compressed too :) actually, I wonder if it's possible...07:31
pboroand I don't mean any lzma or similar compression but just not padding the field with zeros or similar07:32
*** Deyan has joined #ingres07:33
Deyanhello everybody07:34
pborohi Deyan07:34
Deyanguys, i am encountering significant performance fall over time on one of productions servers...07:34
Deyanafter i restart it everything seems fine07:35
Deyanthan, after few hours of work connections get slower07:35
pborowhich version?07:35
Deyanand in general it takes more and more time to get result from queries07:35
Deyan9.3.0 15107:35
Deyanx86_6407:35
DeyanLinux07:35
pborohmh :/07:35
Deyan(CentOS)07:35
Deyanright now i am reading tons of article in hope to find what causes the problem07:40
Deyanit is not loaded server at all07:40
Deyanmax 100 connections at peak time07:40
Deyanload is mostly below 1 1 107:41
grantciostat?07:43
Deyani also checked network07:43
Deyanand it is not crowded07:43
Deyanhttp://codepad.org/ZfAHzMKt07:44
Deyanthat is current one07:44
*** Mud has quit IRC07:45
gerhardDeyan: if lots of inserts / deletes are run against tables, they might get "fragemented". A "usermod dbname" may be helpful.07:46
*** Alex| has quit IRC07:46
gerhardPboro: how can I make an existing table "compressed"?07:47
Deyangerhard: thanks for information - that is helpful07:49
Deyanbecause we have lots of temporary tables07:49
Deyanthat may have lots of insert/deletes07:49
Deyani noticed ingres does not take lots of RAM...07:50
*** Mud has joined #ingres07:50
Deyanwhat configuration parameter to tweak to make it use more ram and hopefuly reduce those inserts/deletes? (like... make temporary tables be in memory or something)07:51
PaulM05bump up your DMF cache07:51
Deyani think i should learn more about usermod08:03
Deyanbecause i never run it08:03
Deyanjust optimizedb, weekly08:04
gerhardoptimizedb over the whole db?08:04
Deyanyes08:04
Deyangerhard: you suggested running usermod <dbname>08:06
Deyanshould i do it while server is running?08:06
gerhardI think it (optimizedb) is more efficient to run specifically for the table.column combinations that are actually used in the where clauses of long running queries...08:07
gerhard...it depends08:08
*** Alex| has joined #ingres08:09
*** ChanServ sets mode: +o Alex|08:09
gerhardmaybe you should first of all run it on a *testing machine* to get a rough estimation about how long usermod for the whole db will take...08:10
DarylMusermod is of questionable use as a routine administrative function.  But your milage may vary.08:10
Deyangerhard: yep, i have a copy of entire DB on another server08:11
Deyanwhich i use for testing applications...08:11
gerhardDarylM: you're right08:25
gerhardDeyan: from my own experience, there is no single go-fast-button in Ingres (-:08:26
Deyangerhard: i am aware of that, mate08:27
Deyan:)08:27
gerhardYou'll have to find out *what* queries run slow and choose proper indexes08:27
DarylMThe biggest administrative concern with table structures are hash tables that have a lot of insert or key update activity which can potentially cause long overflow chains.08:27
Deyani am alredy very happy with my own, newbish tweaks08:27
DarylMThat can be both a performance problem as well as a concurrency (locking) problem.08:27
Deyanlocks are not many08:28
Deyani checked that08:28
Deyan-rw-rw-r-- 1 ingres ingres 165K 2010-02-18 16:15 usermod.sys.txt08:30
Deyanthis is usermod's output08:30
Deyanfor the database :D08:31
Deyan165k file :)08:31
Deyani am examining it atm08:31
Deyanit gave some nice suggestions08:31
DarylM? usermod only regurgitates the exact same table structures and indexes you initially created.  It doesn't actually suggest anything "new"08:33
*** gerhard has quit IRC08:34
DeyanDarylM: ah... thanks08:39
Deyanso it basically gives me a summary of what type, page size etc, each table/index have?08:46
Deyanso I can review it08:46
DarylMyup.  Makes for a good starting point for building other types of scripts, migrations, updates, etc.08:48
DeyanDarylM: do you use direct_io in DBMS ?09:02
DarylMI don't change the defaults.  There are not very many OSes supported and the default is supposedly correct for your specific OS09:04
*** DarylM has quit IRC09:09
*** DarylM has joined #ingres09:15
Deyanis it possible somehow to see table statistics? how many inserts/deletes each table had so far, etc?09:38
PaulM05not directly09:39
PaulM05if the tables are journalled then you can run auditdb and process the output09:39
PaulM05but that will only tell you about updates/inserts/deletes not selects09:40
PaulM05good night all09:48
*** PaulM05 has quit IRC09:48
*** Deyan has quit IRC10:04
*** cthibert has left #ingres10:10
*** cthibert has joined #ingres10:13
*** KermitTheFragger has quit IRC10:14
*** Alex| has quit IRC10:56
*** Mud has quit IRC11:46
*** Mud has joined #ingres11:51
*** Mud has quit IRC11:52
*** Mud has joined #ingres11:54
*** grantc has quit IRC12:17
*** cthibert has left #ingres13:13
*** Mud has quit IRC13:24
*** zxiiro has quit IRC14:25
*** zxiiro has joined #ingres15:03
*** ChanServ sets mode: +v zxiiro15:03
*** mull has quit IRC15:54
*** atrofast has quit IRC16:23
*** cytrinox has quit IRC19:24
*** cytrinox has joined #ingres19:25
*** rossand has quit IRC19:47
*** zxiiro has quit IRC22:18
*** zxiiro has joined #ingres22:19
*** ChanServ sets mode: +v zxiiro22:19
*** Alex| has joined #ingres22:36
*** ChanServ sets mode: +o Alex|22:36
*** Alex| has quit IRC23:04
*** Alex| has joined #ingres23:23
*** ChanServ sets mode: +o Alex|23:23

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!