🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

parallelworkloads

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parallelworkloads

A Python Wrapper for the workload model proposed by Lublin

0.1.3
Source
PyPI
Maintainers
1

lublinworkload

A Python port of the Workload Model proposed by Lublin & Feitelson.

The following code shows how to use it:

.. code:: python

from parallelworkloads import lublin99 w = lublin99.Lublin99(1, 2) # Will use both batch and interactive jobs w.numJobs=4 # will generate four jobs w.generate() # The four generated jobs are shown below

[SwfJob(jobId=1, submissionTime=103, waitTime=-1, runTime=12379, allocProcs=16, avgCpuUsage=-1, usedMem=-1, reqProcs=-1, reqTime=-1, reqMem=-1, status=1, userId=-1, groupId=-1, executable=-1, queueNum=1, partNum=-1, precedingJob=-1, thinkTime=-1),

SwfJob(jobId=2, submissionTime=3089, waitTime=-1, runTime=177, allocProcs=16, avgCpuUsage=-1, usedMem=-1, reqProcs=-1, reqTime=-1, reqMem=-1, status=1, userId=-1, groupId=-1, executable=-1, queueNum=1, partNum=-1, precedingJob=-1, thinkTime=-1),

SwfJob(jobId=3, submissionTime=3150, waitTime=-1, runTime=10, allocProcs=2, avgCpuUsage=-1, usedMem=-1, reqProcs=-1, reqTime=-1, reqMem=-1, status=1, userId=-1, groupId=-1, executable=-1, queueNum=0, partNum=-1, precedingJob=-1, thinkTime=-1),

SwfJob(jobId=4, submissionTime=3172, waitTime=-1, runTime=7, allocProcs=32, avgCpuUsage=-1, usedMem=-1, reqProcs=-1, reqTime=-1, reqMem=-1, status=1, userId=-1, groupId=-1, executable=-1, queueNum=0, partNum=-1, precedingJob=-1, thinkTime=-1)]

User runtime estimates

parallelworkloads also supports generating runtime estimates based on the model proposed by Dan Tsafrir in 2005. For the model to work, it needs at least 200 jobs. Here's an example continuing the previous one:

.. code:: python

from parallelworkloads import tsafrir05

w.numJobs = 200 jobs = w.generate() print('Original requested time of first job:', jobs[0].reqTime) t = tsafrir05.Tsafrir05(jobs) jobs = t.generate(jobs) print('Generated requested time of first job:', jobs[0].reqTime)

Which gives as output:

.. code::

Original requested time: -1 Generated requested time: 22962.0

Keywords

workload

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts