# Queue without resource limit

**URL:** <https://community.openpbs.org/t/queue-without-resource-limit/1805>\
**Category:** Users/Site Administrators\
**Created:** [October 11, 2019, 4:07pm UTC](https://community.openpbs.org/t/queue-without-resource-limit/1805 "2019-10-11T16:07:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/daniel/32/630_2.png) [@daniel](https://community.openpbs.org/u/daniel)\
**Post date:** [October 11, 2019, 4:07pm UTC](https://community.openpbs.org/t/queue-without-resource-limit/1805/1 "2019-10-11T16:07:15Z")

</div>

Hello,

Here in our PBSPro, we have a rule that all users can use 100 concurrent cores (we have no limits to queue jobs).

In server configurations, I have the statement: **set server max\_run\_res.ncpus = [u: PBS\_GENERIC = 100]**. And everything is working as expected.

But I’m trying to find a way to set up a queue to circumvent this limit, and all jobs sent by a user to it can use more than 100 cores (or all available cores). This queue will have a maximum walltime of 2 minutes.

Thanks

---

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [October 11, 2019, 9:09pm UTC](https://community.openpbs.org/t/queue-without-resource-limit/1805/2 "2019-10-11T21:09:54Z")

</div>

> [@daniel](#):
>
> But I’m trying to find a way to set up a queue to circumvent this limit,

Setting the limit at the server level, is kind of global limit. You cannot bypass it.  
Instead you create limits at the queue level only.

If you are interested to implement , this might help:

1. create a server level custom resource (type=long, flag=q) called cores and **set server max\_run\_res.cores = [u: PBS\_GENERIC = 100]**
2. create a queue called “testqueue”  
- set queue testqueue resources\_max.walltime=00:02:00  
- set queue testqueue resources\_min.walltime=00:02:00  
- set queue testqueue resources\_default.walltime=00:02:00
3. Create a queuejob hook , that modifies the request and assigns the ncpus requested value to the cores during the job request, in this way any jobs submitted to any other queues other than “testqueue” would be restricted to request 100 cores.

Thank you.

---

<div class="post-metadata">

**Author:** ![daniel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/daniel/32/630_2.png) [@daniel](https://community.openpbs.org/u/daniel)\
**Post date:** [October 14, 2019, 12:26pm UTC](https://community.openpbs.org/t/queue-without-resource-limit/1805/3 "2019-10-14T12:26:14Z")

</div>

Great!

I gonna try it.

Thanks again @adarsh!
