MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

zIIP Processing

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
NASCAR9
Intermediate


Joined: 08 Oct 2004
Posts: 274
Topics: 52
Location: California

PostPosted: Mon Oct 19, 2009 12:23 pm    Post subject: zIIP Processing Reply with quote

I'm looking for real world experiences with zIIP engines. We currently have one in house and I'm trying to exploit it. This leads me to my questions.

1. Does it make sense to offload very fast stored procedures that execute 1000's of times to the zIIP? This would free the main CPU for other things.

2. Do you only offload longer running (4 seconds or more) stored procedures to the zIIP?

3. Other suggestions.
_________________
Thanks,
NASCAR9
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Oct 19, 2009 12:47 pm    Post subject: Reply with quote

NASCAR9,

AFAIK, A stored procedure arrives as an enclave via the DDF address space and switches to TCB mode when it runs in the stored procedure address space. The Stored procedure is processed by the DBM1 address space like any other SQL statement and will remain in enclave mode. Since it runs as an enclave, it becomes zIIP eligible. The percentage of work eligibility is dependent on the amount of SQL in the stored procedure.

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vmbigot
Beginner


Joined: 17 Jun 2004
Posts: 36
Topics: 14
Location: westminster, california

PostPosted: Mon Oct 19, 2009 1:29 pm    Post subject: Reply with quote

Kolusu,

Pardon me for jumping in on this thread. NASCAR9 and I work in the same shop, so I have a vested interest in anything that he does. You stated that the amount of SQL in the native stored procedure determines how much is zIIP eligible. Is stored procedure logic (if-then-else) eligible or is it just the SQL that is eligible?

vmbigot
_________________
Inside every older man is a young boy asking this question. What the heck happened?!?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Oct 20, 2009 11:39 am    Post subject: Reply with quote

vmbigot,

Honestly I am not sure but from what I read is that only SQL's/Call statement processing/Result processing/Commit processing are eligible for zIIP.

Remember that WLM managed stored procedures are NOT eligible for zIIP

Remote Native SQL procedures which run enclave SRB, are zIIP eligible


Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vmbigot
Beginner


Joined: 17 Jun 2004
Posts: 36
Topics: 14
Location: westminster, california

PostPosted: Tue Oct 20, 2009 12:20 pm    Post subject: Reply with quote

Kolusu,

I read the same thing and am gratified that I had read it correctly. My suspicion is that the DBM1 address space executes the logic in a native stored procedure as a TCB and the SQL as an enclave SRB. I wonder if it would be better (i.e. more efficient) to run a stored procedure that has heavy logic and little SQL as a WLM managed stored procedure instead of native? This would free up the DBM1 address space to do real SQL (and zIIP eligible) work. What's your take on this? Or then again, maybe I am over analyzing this and should let the operating system do it's job.

vmbigot
_________________
Inside every older man is a young boy asking this question. What the heck happened?!?
Back to top
View user's profile Send private message
NASCAR9
Intermediate


Joined: 08 Oct 2004
Posts: 274
Topics: 52
Location: California

PostPosted: Wed Oct 21, 2009 1:53 pm    Post subject: Reply with quote

Thanks for your responses Kolusu and vmbigot!

Doesn't anyone else use a zIIP engine? Question
_________________
Thanks,
NASCAR9
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group