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

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

IDS Forum

Re: Server hangs with "mutex wait nsf.lock"

Posted By:
Date:


The culprit is your NETTYPE entry for tcp connections. TCP listeners should
NEVER be set up in CPU VPs. This causes several problems. First the CPU VP
cannot practically block on the sockets waiting for new connections and requests
from existing connections so it must poll the sockets, this burns CPU time to
no purpose and pushes the system call overhead way up tying up the OS system
call threads. Now, obviously, the CPU VP(s) have better things to do than poll
so they do so only when they have time at certain breakpoints in their runloop.
This means that if the CPU VPs are busy responding to queries they will not
poll the sockets and so you get the apparent lockups you are experiencing
especially if there are also shared memory connections.

Also I notice that your shared memory NETTYPE only specifies one listener poll
thread, shared memory listeners should always be run in ALL CPU VPs for best
responsiveness and to keep CPU VP#1 (which handles the first poll thread) from
running flat out and taking 90% of the work for itself.

Change the NETTYPE settings as follows:

NETTYPE ipcshm,3,50,CPU # Configure poll thread(s) for nettype
NETTYPE tlitcp,2,300,NET # Configure poll thread(s) for nettype

The problem will vanish.

Art S. Kagel
----- Original Message -----
From: Patrick McD.... <patmcd@intraware.com>
At: 1/30 18:51

> Long post..
>
> this occurs a few times a week. Shared memory connections work fine,
> tcp connections will "hang". So when this condition occurs, it seems as
> if all sessions no longer get served except for one. I have seen this
> occur with as little as 2 sessions. If I fire up a new dbaccess
> session, my window will show up blank and hang and will not show up in
> onstat -u.. The session that is doing the blocking usually clears in a
> minute or two, but occasionally blocks longer ( most we let it go was 30
> minutes in a test). If it takes more than a couple of minutes, we
> bounce the engine. When bringing down, there is an error something
> like, "server not responding, timed out after 120 seconds" although the
> server is brought down.
>
> E450 with 4 procs.
> Informix Dynamic Server Version 9.30.UC3
> Solaris 2.6
>
> Basically a blob image file server. Blobs ranging from 1k to 1G are
> stored and served from machine.
>
> Has anyone experienced this "mutex wait nsf.lock" behavior? Informix
> tech support has been looking into this, but they have been unsuccessful
> in diagnosing.
>
> All shortened for space..
>
> onconfig
>
> ----------
> ## Tried several different NETTYPE configs.. currently
>
> NETTYPE ipcshm,1,50,CPU # Configure poll thread(s) for nettype
> #NETTYPE tlitcp,2,50,NET # Configure poll thread(s) for nettype
> NETTYPE tlitcp,2,300,CPU # Configure poll thread(s) for nettype
>
> MULTIPROCESSOR 1 # 0 for single-processor, 1 for
> multi-processor
> NUMCPUVPS 3 # Number of user (cpu) vps
> SINGLE_CPU_VP 0 # If non-zero, limit number of cpu vps
> to one
>
> NOAGE 1 # Process aging
> ## Messed with this. Tried AFF and no AFF and AFF 2 processors etc..
> same problem.
> AFF_SPROC 0 # Affinity start processor
> AFF_NPROCS 0 # Affinity number of processors
> ----------
>
> onstat -u
> ==== the sessions with "S" appear hung.
> ---------
> 14152b34 ---P--- 11338 testftp - 0 0 1 250 0
> 14154344 ---P--- 13400 testftp - 0 0 1 250 0
> 1415977c S--P--- 13396 testftp - 1417fdc8 0 0 23500 0
> 1415a384 ---P--- 13401 testftp - 0 0 1 250 0
> 1415a988 S--P--- 13398 informix 2 1417fdc8 0 0 27500 0
> ---------
>
> onstat -g ath
> ---------
> 11422 14d1ddc0 14152b34 2 sleeping forever 1cpu sqlexec
> 13480 14f2c778 1415977c 2 mutex wait nsf.lock 1cpu sqlexec
> 13482 159451b8 1415a988 2 mutex wait nsf.lock 1cpu srvinfx
> 13484 14dcc2b0 14154344 3 running 4cpu sqlexec
> 13485 14ce1ed0 1415a384 2 sleeping forever 1cpu sqlexec
> ---------
>
> onstat -g lmx:
> ----------
> Locked mutexes:
> mid addr name holder lkcnt waiter waittime
> 3258 1417fdc8 nsf.lock 13484 0 13 986
> 13482 972
> 13480 757
> 5757 15287988 slcommon_ct 13480 0
> 6020 15945840 slcommon_ct 13482 0
>
> Number of mutexes on VP free lists: 568
> ----------
>
> onstat -g wmx:
> -----------
> Mutexes with waiters:
> mid addr name holder lkcnt waiter waittime
> 3258 1417fdc8 nsf.lock 13484 0 13 986
> 13482 972
> 13480 757
>
> Number of mutexes on VP free lists: 568
> -----------
> onstat -k all
> ---------
> Stack for thread: 13484 sqlexec <--looks like session blocking others.
> base: 0x14ce6000
> len: 36864
> pc: 0x006995b8
> tos: 0x14cee848
> state: running
> vp: 4
>
> Stack for thread: 13482 srvinfx <--- looks like a "blocked" session
> base: 0x14cc1000
> len: 36864
> pc: 0x006995b8
> tos: 0x14cc9778
> state: mutex wait
> vp: 1
>
> 0x00691580 (oninit)mt_lock_wait(0xa8b428, 0xa8b400, 0x2, 0x1417fdc8,
> 0x1, 0x0)
> 0x006916f8 (oninit)mt_lock (0x1417fdc8, 0x1417fdc8, 0x0, 0x1400a8e0,
> 0x0, 0x1400a8a0)
> 0x006e3fa0 (oninit)sl_lock (0x1457c6d0, 0x157b6d88, 0x7, 0x1400a8e0,
> 0x14cc99cc, 0x1400a8a0)
> 0x006e3350 (oninit)net_nsf_closefd(0x9581f8, 0x14ca5e30, 0x14cc9a3c,
> 0xa, 0x4, 0x14ca5e30)
> 0x00717640 (oninit)disctli (0x4, 0xa, 0x14d07d04, 0x14ca5e30,
> 0x15d95da8, 0x1)
> 0x007066b8 (oninit)tlDiscon(0x14cdf030, 0xa, 0x2, 0x2, 0x1, 0xa9f1b8)
> 0x007037fc (oninit)slSQIdiscon(0xa, 0xa, 0xffffffff, 0x147b7d1c, 0x0,
> 0x14d07d04)
> 0x006fe050 (oninit)pfDiscon(0x14cdf030, 0x147b7ca8, 0x14cc9d5c, 0x0,
> 0xa, 0x14d07d04)
> 0x006f5aac (oninit)cmDiscon(0x14cdf0a8, 0xa, 0x14cc9d5c, 0xa,
> 0x14cdf030, 0x14cc9c38)
> 0x006f2a08 (oninit)ascAbort(0x14d07d04, 0x14cdf0a8, 0x14cc9d58, 0x0,
> 0x14cdf0a8, 0xef508c10)
> 0x006d22a0 (oninit)asfExit (0x1, 0x0, 0x0, 0x14cdf0a8, 0x14cdf030,
> 0x14cc9d58)
> 0x006d2078 (oninit)ASF_Call(0xa0, 0x0, 0x14cdf0a8, 0xa, 0x14cc9d58,
> 0x14cc9d61)
> 0x003c5bc8 (oninit)sqscb_cleanup(0xa91400, 0x927400, 0xa85000, 0x1000,
> 0xa9174c, 0x1)
> 0x0069e034 (oninit)destroy_session(0x927400, 0xa7bc00, 0xa7bf2c,
> 0x14119950, 0x927438, 0x14119950
> )
> 0x0039c18c (oninit)sq_exit (0xa7b800, 0x0, 0x14d07018, 0x0, 0x1470f018,
> 0x4e)
> 0x0039810c (oninit)sqmain (0x38, 0xa91400, 0x927400, 0xa85004, 0x1,
> 0x94c6c4)
> 0x00699b38 (oninit)startup (0xa8b400, 0x0, 0x0, 0x1400a8e0, 0x1462a018,
> 0x1400a8a0)
> 0x0068dd6c (oninit)idle_processor(0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
> 0x00000000 (*nosymtab*)0x0
>
> ---------
>
> Box is under very low load..
>
> ---------
> mpstat 1 5
> CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt
> idl
> 0 7 0 426 126 115 197 11 12 28 0 2017 17 7
> 0 76
> 1 6 0 560 408 200 146 10 10 20 0 2116 27 10
> 0 63
> 2 6 0 312 111 100 133 10 10 20 0 3120 27 11
> 0 61
> 3 6 0 269 265 259 85 6 6 19 0 1783 31 13
> 0 56
> CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt
> idl
> 0 0 0 0 100 100 18 0 1 0 0 7 0 0 0
> 100
> 1 3 0 312 400 200 34 0 0 1 0 39 0 0 0
> 100
> 2 0 0 0 101 100 15 0 2 0 0 16 0 0 0
> 100
> 3 0 0 0 104 104 2 0 1 0 0 0 0 0 0
> 100
> CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt
> idl
> 0 0 0 0 100 100 16 0 1 0 0 23 0 0 0
> 100
> 1 0 0 312 400 200 34 0 0 0 0 32 0 0 0
> 100
> 2 0 0 0 103 103 22 0 1 0 0 19 0 0 0
> 100
> 3 0 0 0 102 102 4 0 1 0 0 4 0 0 0
> 100
> CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt
> idl
> 0 0 0 0 104 104 28 0 0 2 0 13 0 0 0
> 100
> 1 0 0 312 404 204 36 0 0 2 0 16 0 0 0
> 100
> 2 0 0 0 100 100 20 0 2 0 0 21 0 0 0
> 100
> 3 0 0 0 107 107 1 0 0 0 0 0 0 0 0
> 100
> CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt
> idl
> 0 0 0 0 100 100 6 0 1 0 0 3 0 0 0
> 100
> 1 0 0 4758 400 200 36 0 1 0 0 40 0 2
> 0 98
> 2 0 0 0 102 101 25 0 3 0 0 19 0 0 0
> 100
> 3 0 0 0 104 104 1 0 0 0 0 0 0 0 0
> 100
> ----------
> vmstat 1 5
> procs memory page disk faults cpu
> r b w swap free re mf pi po fr de sr s0 s1 s6 s5 in sy cs us
> sy id
> 0 0 0 16568 2432 0 26 16 0 2 0 0 1 1 0 0 811 533 563 26
> 11 64
> 0 0 0 2203024 40896 0 3 0 0 0 0 0 0 0 0 0 603 127 86
> 0 0 100
> 0 0 0 2203024 40896 0 0 0 0 0 0 0 0 0 0 0 608 57 55
> 0 0 100
> 0 0 0 2203024 40896 0 0 0 0 0 0 0 0 0 0 0 605 73 65
> 0 0 100
> 0 0 0 2203024 40896 0 0 0 0 0 0 0 0 0 0 0 608 103 98
> 0 0 100
>
> ---------
>
> Patrick McDonough


Messages In This Thread

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

IDS Forum is maintained by Administrator with WebBBS 5.12.