# Is there a logging error in pm.sample() multiprocessing?

**URL:** <https://discourse.pymc.io/t/is-there-a-logging-error-in-pm-sample-multiprocessing/1028>\
**Category:** Questions\
**Created:** [March 29, 2018, 1:52pm UTC](https://discourse.pymc.io/t/is-there-a-logging-error-in-pm-sample-multiprocessing/1028 "2018-03-29T13:52:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![researcher](https://avatars.discourse-cdn.com/v4/letter/r/edb3f5/32.png) [@researcher](https://discourse.pymc.io/u/researcher)\
**Post date:** [March 29, 2018, 1:52pm UTC](https://discourse.pymc.io/t/is-there-a-logging-error-in-pm-sample-multiprocessing/1028/1 "2018-03-29T13:52:34Z")

</div>

Hello,

I’m wondering if there is a bug in the sampling.sample method on the latest version of pymc3 3.3.

Specifically, when I specify both the ‘chains’ and ‘cores’ argument it seems to not respect the ‘cores’ argument passed, at least according to the logging provided; it always seems to default to 4 cores even when less or more is specified. Further, I did not see anything in the sample method that indicated it would use a maximum of 4 cores if the number of cores is specified.

To be transparent, I am running the sampling through a jupyter notebook locally that is being hosted on a remote server.

![image](https://canada1.discourse-cdn.com/flex036/uploads/pymc3/original/1X/ca58094b6aad5e4c6d0aa536ef2b069785186d69.jpg)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pymc3/original/1X/bbb4f81e8089251dd381f8727005d0c6aa51b823.png)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pymc3/original/1X/e84bb747c0961e76a1be0545d9f9b6262fde0a01.png)
