- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- High kernel mode from SAS
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2006 10:31 AM
03-23-2006 10:31 AM
High kernel mode from SAS
We've used SAS (a statistical analysis language from SAS Institute) on OpenVMS for years. We were finally going to upgrade from SAS 8.2 to 9.1.3, but 9.1.3 has some nasty performance problems on our system.
We've been working with SAS tech support, but the problem remains unexplained and unsolved.
My question for this group is whether the pattern of problems (listed below) closely resembles problems you've encountered before.
SAS programs run well under version 8.2 (our current production version).
Our test cases generally run 1/3 faster under version 9.1.3 than under 8.2, but only when we run them one at a time.
When we run two or more SAS test cases concurrently under 9.1.3, kernel mode time shoots through the roof: often >100% and generally much greater than user mode time.
In the worst example, a job that took less than 2 minutes when it ran by itself took 4.5 hours when we ran two instances concurrently (writing to separate output volumes on the HSG80). The single job ran in about 18 CPU seconds, 00:01:52 elapsed, 17K BIO, 47K DIO, 1K page faults. The two jobs running concurrently averaged 04:15:44 CPU, 04:25:38 elapsed, 17K BIO, 47K DIO, 1K page faults.
When SAS 9.1.3 triggers the high kernel mode, the compute queue runs into the teens (because other people are also on the system), and response time is terrible for everyone.
SAS tech support has run a couple of our test cases, but they can't duplicate the problem.
We've run other tests to see if we can reproduce the problem outside of SAS 9.1.3. Basically, all other tests pass with flying colors. We use DFO routinely, btw.
In short, it seems that something SAS 9.1.3 is doing reacts very badly with something in VMS or RMS that yields huge amounts of kernel mode time.
Any thoughts?
P.S. If we have to give up on SAS on OpenVMS, that's basically the end of OpenVMS at our site.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2006 11:16 AM
03-23-2006 11:16 AM
Re: High kernel mode from SAS
These are mostly "from-the-hip" musings . . .
1) try turning off one CPU; that'll remove any spinlock contention (it's possible that would show up as interrupt stack time, rather than kernel mode -- that's not my area of expertise . . .) $ STOP/CPU will do the trick.
2) What does "has run a couple of our test cases, but they can't duplicate the problem."
mean? How close is their test environment to your production environment?
3) RMS runs primarily in Exec mode, so it's not likely that RMS is relevant here. It's also not likely an I/O thing, so while running DFO is good, it's also not likely relevant.
4) What patch kits have been installed? While I can't point to any specific reason why that would be interesting, I'd compare your operating environment to that of SAS's, given that they couldn't reproduce the issue in-house.
5) Log a support call, or have SAS log a support call, in case VMS Engineering needs to get involved with both parties.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2006 12:51 PM
03-23-2006 12:51 PM
Re: High kernel mode from SAS
Sounds like an interesting problem.
The kernel time it probably spend in locking.
What monitoring tools do you have running?
You may want to get a nice wide T4 data collection going to see what activities correlate with the kernel time.
Do you have a kernel profile tool (PCA, DCPI)
http://h71000.www7.hp.com/openvms/journal/v2/articles/dcpi.html
Also, if the lock manager plays a role, then the SDA LCK extention may be interesting.
Hope this help some,
Regards,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2006 05:55 PM
03-23-2006 05:55 PM
Re: High kernel mode from SAS
using T4 and correlating your kernel mode usage to other activity by using the TLVIZ tool might be the fastest way to find out, where the kernel mode time is spent. As you seem to be able to easily reproduce this, you have about 4 hours time to look at the system while those 2 jobs are running ;-)
As the 2 jobs shows the same amount of BIO,DIO and pagefaults, you don't have to worry about paging and IO. Here are some MONITOR screens to look at look for 'high' rates:
$ MONI IO
- logical name translations
- file opens
- INSWAP
$ MONI LOCK
- ENQ or DEQ
$ MONI FCP
FCP Call Rate
CPU tick rate
$ MONI FILE
any high attempt rate with low hit %
OpenVMS V7.3-2 includes the PCS$SDA extension (PC Sampling), which will allow you to find out, where the system is spending most of it's time:
$ ANAL/SYS
SDA> PCS ! will show you some help
SDA> PCS LOAD
SDA> PCS START TRACE ! let it run for a while
SDA> PCS STOP TRACE
SDA> PCS SHOW TRACE/STAT
SDA> PCS UNLOAD
This would at least tell you, in which modules/routines the system (and/or your processes) are spending most of their time and allow you a more educated guess what the problem may be.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2006 08:15 PM
03-26-2006 08:15 PM
Re: High kernel mode from SAS
SAS is very memory depending. Did the wsextent get decreased of the user ? Or is SAS itself using a lot more and thus requires an increase of wsextent ? Other quota's sufficent ?
Changes in config (SAS and VMS system params) ?
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2006 11:46 PM
03-26-2006 11:46 PM
Re: High kernel mode from SAS
High kernel time is suspicious, but it is often the result of a rather mundane situation. The fact that SAS technical support would suggest that the problem is related to some specific configuration on your system, not a generic problem affecting all configurations.
One thing that does come to mind is a dramatic difference in paging rates.
The first step is to look, in detail, at the resources used and configurations of both the old and new systems, and identify what is different between them. File locking, as has been mentioned, is also a possible issue. In all cases, this is most likely an application (e.g. SAS) mis-use of the API, rather than an underlying OpenVMS problem.
It is hard to troubleshoot these remotely, but a detailed review normally identifies the source of the problem.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 04:00 AM
03-27-2006 04:00 AM
Re: High kernel mode from SAS
-Terry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 05:02 AM
03-27-2006 05:02 AM
Re: High kernel mode from SAS
Someone asked for our installed patches: VMS732_PCSI V1.0, VMS732_UPDATE V5.0, VMS732_DRIVER V2.0, VMS732_GRAPHICS V3.0, VMS732_SYS V7.0, VMS732_XFC V2.0, VMS732_DCL V4.0, VMS732_MANAGE V5.0.
For SAS 9.1.3, we're at service pack level 3 and we installed the D9ST02 patch (which applies to the SAS/STAT module).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 08:44 AM
03-27-2006 08:44 AM
Re: High kernel mode from SAS
Phil