Join IIUG
 for   
 

Informix News
18 Nov 13 - ZDNet - Top 20 mobile skills in demand... Read
09 Sep 13 - telecompaper - Shaspa and Tatung have shown a new smart home platform at Ifa in Berlin. Powered by the IBM Informix software... Read
06 Sep 13 - IBM data magazine - Mission Accomplished - Miami, Florida will be the backdrop for the 2014 IIUG Informix Conference... Read
01 Feb 13 - IBM Data Magazine - Are your database backups safe? Lester Knutsen (IBM Champion) writes about database back up safety using "archecker"... Read
14 Nov 12 - IBM - IBM's Big Data For Smart Grid Goes Live In Texas... Read
3 Oct 12 - The Financial - IBM and TransWorks Collaborate to Help Louisiana-Pacific Corporation Achieve Supply Chain Efficiency... Read
28 Aug 12 - techCLOUD9 - Splunk kicks up a SaaS Storm... Read
10 Aug 12 - businessCLOUD9 - Is this the other half of Cloud monitoring?... Read
3 Aug 12 - IBM data management - Supercharging the data warehouse while keeping costs down IBM Informix Warehouse Accelerator (IWA) delivers superior performance for in-memory analytics processing... Read
2 Aug 12 - channelbiz - Oninit Group launches Pay Per Pulse cloud-based service... Read
28 May 12 - Bloor - David Norfolk on the recent Informix benchmark "pretty impressive results"... Read
23 May 12 - DBTA - Informix Genero: A Way to Modernize Informix 4GL Applications... Read
9 Apr 12 - Mastering Data Management - Upping the Informix Ante: Advanced Data Tools... Read
22 Mar 12 - developerWorks - Optimizing Informix database access... Read
14 Mar 12 - BernieSpang.com - International Informix User Group set to meet in San Diego... Read
1 Mar 12 - IBM Data Management - IIUG Heads West for 2012 - Get ready for sun and sand in San Diego... Read
1 Mar 12 - IBM Data Management - Running Informix on Solid-State Drives.Speed Up Database Access... Read
26 Feb 12 - BernieSpan.com - Better results, lower cost for a broad set of new IBM clients and partners... Read
24 Feb 12 - developerWorks - Informix Warehouse Accelerator: Continuous Acceleration during Data Refresh... Read
6 Feb 12 - PRLOG - Informix port delivers unlimited database scalability for popular SaaS application ... Read
2 Feb 12 - developerWorks - Loading data with the IBM Informix TimeSeries Plug-in for Data Studio... Read
1 Feb 12 - developerWorks - 100 Tech Tips, #47: Log-in to Fix Central... Read
13 Jan 12 - MC Press online - Informix Dynamic Server Entices New Users with Free Production Edition ... Read
11 Jan 12 - Computerworld - Ecologic Analytics and Landis+Gyr -- Suitors Decide to Tie the Knot... Read
9 Jan 12 - planetIDS.com - DNS impact on Informix / Impacto do DNS no Informix... Read
8 Sep 11 - TMCnet.com - IBM Offers Database Solution to Enable Smart Meter Data Capture... Read
1 Aug 11 - IBM Data Management Magazine - IIUG user view: Happy 10th anniversary to IBM and Informix... Read
8 Jul 11 - Database Trends and Applications - Managing Time Series Data with Informix... Read
31 May 11 - Smart Grid - The meter data management pitfall utilities are overlooking... Read
27 May 11 - IBM Data Management Magazine - IIUG user view: Big data, big time ( Series data, warehouse acceleration, and 4GLs )... Read
16 May 11 - Business Wire - HiT Software Announces DBMoto for Enterprise Integration, Adds Informix. Log-based Change Data Capture... Read
21 Mar 11 - Yahoo! Finance - IBM and Cable&Wireless Worldwide Announce UK Smart Energy Cloud... Read
14 Mar 11 - MarketWatch - Fuzzy Logix and IBM Unveil In-Database Analytics for IBM Informix... Read
11 Mar 11 - InvestorPlace - It's Time to Give IBM Props: How many tech stocks are up 53% since the dot-com boom?... Read
9 Mar 11 - DBTA - Database Administration and the Goal of Diminishing Downtime... Read
2 Feb 11 - DBTAs - Informix 11.7 Flexible Grid Provides a Different Way of Looking at Database Servers... Read
27 Jan 11 - exactsolutions - Exact to Add Informix Support to Database Replay, SQL Monitoring Solutions... Read
25 Jan 11 - PR Newswire - Bank of China in the UK Works With IBM to Become a Smarter, Greener Bank... Read
12 Oct 10 - Database Trends and Applications - Informix 11.7: The Beginning of the Next Decade of IBM Informix... Read
20 Sep 10 - planetIDS.com - ITG analyst paper: Cost/Benefit case for IBM Informix as compared to Microsoft SQL Server... Read
20 Jul 10 - IBM Announcements - IBM Informix Choice Edition V11.50 helps deploy low-cost scalable and reliable solutions for Apple Macintosh and Microsoft Windows... Read
20 Jul 10 - IBM Announcements - Software withdrawal: Elite Support for Informix Ultimate-C Edition... Read
24 May 10 - eWeek Europe - IBM Supplies Database Tech For EU Smart Grid... Read
23 May 10 - SiliconIndia - IBM's smart metering system allows wise use of energy... Read
21 May 10 - CNET - IBM to help people monitor energy use... Read
20 May 10 - ebiz - IBM Teams With Hildebrand To Bring Smart Metering To Homes Across Britain... Read
19 May 10 - The New Blog Times - Misurare il consumo energetico: DEHEMS è pronto... Read
19 May 10 - ZDNet - IBM software in your home? Pact enables five-city smart meter pilot in Europe... Read
17 March 10 - ZDNet (blog) David Morgenstern - TCO: New research finds Macs in the enterprise easier, cheaper to manage than... Read
17 March 2010 - Virtualization Review - ...key components of Big Blue's platform to the commercial cloud such as its WebSphere suite of application ser vers and its DB2 and Informix databases... Read
10 February 2010 - The Wall Street Journal - International Business Machines is expanding an initiative to win over students and professors on its products. How do they lure the college crowd?... Read


End of Support Dates

IIUG on Facebook IIUG on Twitter

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum

Re: VERY slow BTS index build -- MEMORY!!!

Posted By: MICHAEL HOFFMAN
Date: Wednesday, 10 September 2014, at 11:26 a.m.

In Response To: VERY slow BTS index build (MICHAEL HOFFMAN)

Well, this has been a long and crazy thread, and it's about time to wrap it up, probably without a solution other than: Time to Upgrade, BTS is not quite ready in 11.5.FC6 on Solaris 10. (and there's the pertinent system info!)
[While researching online, I found Informix Problem IC97110. This led me to some memory stats, and I think the bug is here]

My current test has run for 16+ hours, building a BTS index on a char(25) field with 980K rows. There are only *4* distinct values. Yes, it's a dumb index for BTS, but that's why I chose it... should be super easy to build.
I am the only user also. Pretty much on the entire server!

There is definitely a memory leak *somewhere*. Tons of virtual memory was given at the start, yet th query has grabbed 16 extra segments -- with EXTSHMADD = 40960!!!

Here are the stats, with comments below each:
onstat -p
IBM Informix Dynamic Server Version 11.50.FC6 -- On-Line -- Up 14:23:57 -- 3368960 Kbytes
Profile
dskreads pagreads bufreads %cached dskwrits pagwrits bufwrits %cached
456534 460955 1322622525 99.97 3431698 3449860 435702023 99.21
isamtot open start read write rewrite delete commit rollbk
1914676941 40550611 99290 3170320 1069320 19813 5233 30736 0
gp_read gp_write gp_rewrt gp_del gp_alloc gp_free gp_curs
824302364 237917 197052569 237829 1 0 7
ovlock ovuserthread ovbuff usercpu syscpu numckpts flushes
0 0 0 51867.57 88.61 470 390
bufwaits lokwaits lockreqs deadlks dltouts ckpwaits compress seqscans
5762 0 946555532 0 0 380 9856 11291
ixda-RA idx-RA da-RA RA-pgsused lchwaits
1143 74 372138 373269 1992

These look FANTASTIC, right? 99% for buffer ratios. Read-Ahead in a good range. But User CPU is really high, and isam tot is through the roof!

onstat -P (snipped many buffers, only showing large ones, and the final totals)
Buffer pool page size: 2048
partnum total btree data other dirty
0 46397 0 46395 2 46389
1048577 3331 0 29 3302 0
4194571 59889 0 59798 91 0
23069298 2916 2916 0 0 0
28311557 82455 0 82435 20 306
Totals: 200000 4115 190883 5002 46716
Percentages:
Data 95.44
Btree 2.06
Other 2.50

Good percentages... 95% Data, only 2% 'wasted' buffers.

onstat -D (removed the irrelevant dbspaces and chunks. VERY little activity)
12f2e5028 1 0x20001 1 1 2048 N informix rootdbs
1302a8e28 4 0x1 7 1 2048 N informix chardb
1302aa9b8 21 0x20001 50 1 2048 N informix llogs
1302aae80 24 0x1 52 1 2048 N informix physical
1302ac1c0 26 0x68001 61 2 2048 N SB informix bts_sbpace
1302ac358 27 0x4a001 62 1 2048 N UB informix bts_temp

12f2e51c0 1 1 50 10930 13410 /dev/md/rdsk/d118
1302ad028 7 4 50 365297 4 /dev/md/rdsk/d114
1302b25f8 50 21 50 38 20153 /dev/md/rdsk/d151
1302b29d8 52 24 50 3 8048 /dev/md/rdsk/d152
1302b3bc8 61 26 0 65535 5 /dev/md/rdsk/d136
1302b3db8 62 27 0 80 3448422 /dev/md/rdsk/d137

A lot of reads and writes to the main db dbspace and the bts_temp space. Nothing written yet to the main bts sbspace!

Now for the problem areas:
onstat -g seg
Segment Summary:
id key addr size ovhd class blkused blkfree
16777320 525a4801 10a000000 596639744 7425232 R 145548 116
16777321 525a4802 12d900000 2097152000 24577792 V 45397 466603
16777322 525a4803 1aa900000 1048576 13552 M 159 97
16777323 525a4804 1aaa00000 41943040 493072 VX 5638 4602
16777324 525a4805 1ad200000 41943040 493072 VX 180 10060
16777325 525a4806 1afa00000 41943040 493072 VX 179 10061
16777326 525a4807 1b2200000 41943040 493072 VX 178 10062
16777327 525a4808 1b4a00000 41943040 493072 VX 177 10063
16777328 525a4809 1b7200000 41943040 493072 VX 177 10063
16777329 525a480a 1b9a00000 41943040 493072 VX 176 10064
16777330 525a480b 1bc200000 41943040 493072 VX 175 10065
16777331 525a480c 1bea00000 41943040 493072 VX 174 10066
16777332 525a480d 1c1200000 41943040 493072 VX 175 10065
16777333 525a480e 1c3a00000 41943040 493072 VX 172 10068
16777334 525a480f 1c6200000 41943040 493072 VX 172 10068
16777335 525a4810 1c8a00000 41943040 493072 VX 170 10070
16777336 525a4811 1cb200000 41943040 493072 VX 165 10075
16777337 525a4812 1cda00000 41943040 493072 VX 121 10119
16777338 525a4813 1d0200000 41943040 493072 VX 121 10119
16777339 525a4814 1d2a00000 41943040 493072 VX 121 10119
16777340 525a4815 1d5200000 41943040 493072 VX 121 10119
Total: - - 3449815040 - - 199496 642744

Look at that ugliness! So many VX extensions, and most are UNUSED! onmode -F does not free them either. After monitoring for a while, I do see earlier ones being re-used. What could BTS be storing and why does it keep grabbing more?

onstat -g mem (AHA! Maybe? I cut this list considerably. Explain below.)
Pool Summary:
name class addr totalsize freesize #allocfrag #freefrag
RTN.35.65 VX 1abb93040 19415040 13781040 21460 9187
TRX.35.65 VX 1aaa81040 7745536 164056 487 240
rsam V 12f2e4040 18849792 246752 37046 324
DefConvWrit V 12fe8e040 1167360 1152504 103 32
35 V 130be5040 684032 135880 643 132
global V 12f071040 17203200 755888 1977 42
Blkpool Summary:
name class addr size #blks
mt V 12f0849b8 3383296 42
global V 12f07f618 0 0

I cut out any pools with under 100000 totalsize. Also compared to a different system running well and removed any pools with similar values.
What is left are the rsam, DefConvWrit (?), TRX and RTN pools for session 35 -- mine!
onstat -u
12f4510c0 --BP--- 35 devdba 2 0 0 318303 369793 4916

What is using the memory for those pools? Well, I don't know what rsam is doing, but TRX and RTN are all SAPI -- the Datablade API!
onstat -g ufr rsam
Memory usage for pool name rsam:
size memid
3288 overhead
51032 rsam
273448 rstcb
101416 trans
7637808 partn
10536048 keys

onstat -g ufr DefConvWrit
Memory usage for pool name DefConvWrit:
size memid
3288 overhead
11568 aio

onstat -g ufr RTN.35.65
Memory usage for pool name RTN.35.65:
size memid
3288 overhead
4018920 SAPI

onstat -g ufr TRX.35.65
Memory usage for pool name TRX.35.65:
size memid
3288 overhead
1576 SAPI Named
7576616 SAPI

So there it is. And it relates perfectly back to the Problem noted at the top. That was for Informix 12.1, but I'm guessing that it existed long before and no one noticed, due to specific configurations.

Oh, here are the important Config settings I am using for this run:
PHYSFILE 1000000
PHYSBUFF 128
DBSPACETEMP dbtemp:dbtemp2
SBSPACETEMP bts_temp
SBSPACENAME bts_sbpace
MULTIPROCESSOR 1
VPCLASS cpu,num=3,noage
VP_MEMORY_CACHE_KB 819200
SINGLE_CPU_VP 0
MULTI_INDEX_SCAN 0
VPCLASS aio,num=2,noage
CLEANERS 8
AUTO_AIOVPS 1
DIRECT_IO 0
VPCLASS bts,num=3,noyield
LOCKS 1024000
DEF_TABLE_LOCKMODE ROW
RESIDENT 0
SHMVIRTSIZE 2048000
SHMADD 256000
EXTSHMADD 40960
SHMTOTAL 0
STMT_CACHE 1
STMT_CACHE_HITS 1
STMT_CACHE_SIZE 1024
STMT_CACHE_NOLIMIT 0
STMT_CACHE_NUMPOOL 1
STACKSIZE 64
FILLFACTOR 90
MAX_FILL_DATA_PAGES 0
BTSCANNER num=8,threshold=5000,rangesize=-1,alice=6,compression=default
ONLIDX_MAXMEM 5120
DS_NONPDQ_QUERY_MEM 128000
AUTO_LRU_TUNING 1
BUFFERPOOL size=2K,buffers=200000,lrus=8,lru_min_dirty=80.000000,lru_max_dirty=90.000
000

Thanks for all of your assistance, Mark, Art, and Kate... and all else who've been reading and following along!
Much appreciated,
Michael Hoffman

Messages In This Thread

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum is maintained by Administrator with WebBBS 5.12.