Thursday, 2009-02-19

*** rossand has quit IRC01:43
*** Alex|off is now known as Alex|06:46
*** perftuning has quit IRC07:26
*** grantc_offline is now known as grantc08:30
*** elPiola has quit IRC08:41
grantclo Alex|09:19
*** elPiola has joined #ingres09:52
Alex|hi grantc - lunch with Jo now. Am back later11:40
grantcok - say hi for me11:40
troal01grantc: The modify to reorganize didn't work... I still rant out of tids/pages :(11:54
troal01Is there something I'm missing?11:54
*** troal01 has quit IRC12:15
*** troal01 has joined #ingres12:15
troal01Could tid be made a 64 bit integer?13:04
troal01I mean theoretically13:04
elPiolaanything is possible  in theory13:04
troal01I'm assuming that's a major change though?13:07
elPiolayes, it's <b><i><u>*M.A.J.O.R*</u></i></b> change13:08
* grantc feels that elPiola has understated the amount of work needed13:09
troal01Haha13:10
elPiolagrantc is probably right, I just couldn't think of other means of highlighting13:10
troal01Hey grantc did you see my earlier comment re reorganize?13:10
grantcerr no13:17
grantci have been having some firewall fun13:18
troal01Heh, gotta love firewalls13:18
troal01I did the modify tab to reorganize with location = (loc1, loc2, loc3, loc4) but it still runs out of pages13:19
grantcthis one was causing ssh sessions ( and consequently scp/rsync) to stall13:19
grantcwhat page size are you using?13:20
grantcand what is the row-width13:21
grantci need to prepare some lunch - today's menu consists of albondigas en salsa de tomate con patatas fritas...13:22
troal0116k pages, row size of 40 bytes13:24
troal01I could squeeze in more rows if I increased it to 32k pages but I would be wasting a lot of space13:24
troal01And it still wouldn't be enough13:25
troal01I run out of pages after only about 60% of the db has bee nloaded13:25
*** rossand has joined #ingres14:28
*** ChanServ sets mode: +o rossand14:28
grantctroal01, how many rows are you getting per page?15:23
troal01grantc: Around 340 rows/page15:24
grantcyou can increase the fillfactor15:25
grantcsince 100% usage is 400 rows more or less15:25
grantci cannot remember the defaults15:25
troal01But I'm still going to run out of pages15:26
grantcwhat storage structure are you using?15:27
troal01HEAP at the moment15:27
troal01Once I get everything loaded I'm going to change that15:27
grantchow many rows are you going to insert?15:27
troal01Good question, I don't have the total #rows15:29
grantcyou said earlier "<troal01> I run out of pages after only about 60% of the db has bee nloaded"15:30
grantcso you must have a rough idea?15:30
troal01I currently have it split up in four binary files which I want to load15:30
*** DarylM has joined #ingres15:30
troal01They're each ~50GBs15:30
troal01Containing three tables, row widths are around 40 for each15:30
troal01I've tried to fiddle with page size before and I run out of pages15:32
troal01So I need a way to exceed the max number of pages for one table15:32
grantcnot possible15:32
troal01Or a workaround15:32
troal01What about through partitioning?15:32
grantccreate more locations15:33
grantcyou can have up to 256 IIRC per database15:33
troal01But I already modified this table modify tab to reorganize with location = (loc1, loc2, loc3, loc4) etc and it still runs out of pges15:33
grantcthat's the same as locations but with conditions15:33
grantci.e. data that matches this "set" goes in this/these locations15:33
grantci guess you need more locations... if you know how many rows you are inserting you can work out the number of pages it will use (340 rows per page)15:35
grantcthen div the number of pages by 2^23 et voila15:35
grantcfor a back of a fag packet calculation..15:36
troal01SHould I have to reorganize it after every copy statement?15:36
grantcno you will need to re-org it before15:37
grantcor issue the create table with the correct number of locations15:37
troal01Okay so I did reorg it before... are you sure having several locations will automatically enable me to go above the 2^23 page limit?15:59
grantcthat is my understanding since you cannot have any more than 2^23 pages per location, unless someone else here knows any better?16:00
grantcsee http://community.ingres.com/forum/dba-forum/1203-trying-grow-file-beyond-what-tid-can-handle.html16:00
troal01I came across that post, Paul recommends fiddling with page size which in that case might make al ot of sense but it still doesn't change the fact there is an upper limit in the end16:10
grantcperhaps my idea of partitioned vs location is wrong...16:11
grantcalso i had assumed 2^23 pages per location...16:12
DarylMYou are correct16:13
grantcits per location or per table?16:14
DarylMlocation (physical file really, that is why partitions work also)16:14
DarylM(unless I haven't had enough coffee yet today....)16:15
grantcreading what maspa05 wrote in the forum it would indicate otherwise16:15
*** Alex| is now known as Alex|off16:16
DarylMwait, brain freeze -16:16
DarylMyes, I remember now.  locations were used to get around the old 2GB file size limit16:17
DarylMsystem wide max of 2^23 pages16:17
troal01Okay so what if you really really need more pages?16:21
troal01create two tables?16:21
grantcuse table partitions16:22
grantcsee the create table docs16:22
DarylMBut at 32K pages we are talking about 274,877,906,944 bytes16:22
troal01Because of row width I can fit 512 rows on a 32K page, but only take up about 20kb, 20kb/page * 8388595max pages = ~170GBs16:25
troal01Hm16:26
troal01Maybe that will work, but I'll waste a lot of disk space16:26
troal01And my HDD is only 500 gbs :P16:26
*** Alex|off is now known as Alex|16:27
DarylMThere is overhead in the records.  It is not strictly rowwidth*#rows16:27
DarylMbut yes, wasted space16:27
troal01I'll look into partitioning then, can this be used to work around the max pages issue then?16:28
DarylMThe claim is yes, but I have not personally tried or tested that16:29
* DarylM thinks the term "bleeding edge" comes to mind....16:30
*** perftuning has joined #ingres16:31
troal01Hehe, I'll let you know how it goes, thanks16:32
DarylMWith that much data, you might find partitions will address a number of other issues that will eventually come up16:33
troal01Can  you map each partition to a particular location? I mean is that what this does?  modify main to reconstruct with partition = (hash on id 4 partitions (part1, part2, part3, part4)), location = (data_1, data_2, data_3, data_4)17:09
*** Alex| is now known as Alex|off17:09
*** Alex|off is now known as Alex|19:00
*** troal01 has left #ingres19:42
*** troal01 has joined #ingres19:50
troal01-= THIS MESSAGE NOT LOGGED =-19:50
pboro-= THIS MESSAGE NOT LOGGED =-19:51
troal01Hey where will the logs be posted?19:51
grantc:/19:52
pboroNSA, Interpol, Europol, you name it... wait a sec, wrong chan19:52
grantctroal01, not sure yet19:52
troal01Hehe19:52
grantci have a program that will convert them to html19:52
grantcas well as media wiki19:52
pborograntc, going to do any editorial work on them before posting them?19:52
grantcthe former can be scripted so I don't have to do diddly squat19:53
grantchow's that for an answer pboro19:53
pborookay :)19:53
troal01Heh, never do anything manually that you can script!19:53
grantci don't intend on doing any editing unless i really have to19:54
pboroI'm still trying to script my life management system v0.1 :/19:54
grantcI would like to have them posted to the wiki but I am not sure what the options are for that19:54
troal01I wouldn't mind scripting taking-out-garbage.sh so I don't have to do it anymore :P20:00
grantc@config supybot.plugins.ChannelLogger.filenameTimestamp %Y-%m-%d20:04
ii_loggrantc: The operation succeeded.20:04
grantchttp://croker.net/~ii_log/irc/logs/%23ingres/20:08
grantcnot sure i like the colourisation20:10
grantcbut that is a minor issue20:10
*** Gerhard has joined #ingres20:44
*** Alex| is now known as Alex|off20:57
GerhardHi all22:04
*** rossand has quit IRC22:20
*** Gerhard has quit IRC22:21
*** DarylM has quit IRC23:45

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