Python

Python

Python

 View Only
  • 1.  Python zIIP usage

    Posted Tue July 23, 2024 04:37 AM
    Edited by David Rabinov Tue July 23, 2024 04:41 AM

    Hey all,

    I was tasked to check if python really uses zIIP and how can we leverage it. I ran a few python scripts, but they all seem to use GCP, no zIIP at all.
    Maybe only certain libraries are zIIP eligible? If so, which libraries?
    Have you any experience with python code which uses zIIP? Can you please share?
    Any Help will be appreciated.

    Python version: 3.12.0
    z/OS release: 03.01.00


    ------------------------------
    Regards,

    David
    ------------------------------



  • 2.  RE: Python zIIP usage

    Posted Tue July 23, 2024 09:24 AM

    Hi David, 

    If Python is spending no time on the zIIP, the first thing that you can do is verify APF authorization. 

    To verify that APF authorization is correctly set, you can run the following:
    extattr <path_to_python_install>/lib/python3.12/lib-dynload/libpyzutil.cpython-312.so

    To add APF authorization to the required shared library (requires a privileged account), you can run the following:
    extattr +a <path_to_python_install>/lib/python3.12/lib-dynload/libpyzutil.cpython-312.so

    For what is allowed to be run on the zIIP, you can check the Authorized Use Table. However, if you are hitting a library that is not eligible to run on the zIIP, I would expect there to be a very low amount of time spent on the zIIP, not none. 



    ------------------------------
    Steven Pitman
    ------------------------------



  • 3.  RE: Python zIIP usage

    Posted Wed July 24, 2024 03:20 AM

    I don't know how this was missed during installation, but now we see most of the work goes to zIIP :)

    Thank you!



    ------------------------------
    Regards,

    David
    ------------------------------