# Impact of tempdir: /tmp

**URL:** <https://forums.percona.com/t/impact-of-tempdir-tmp/22059>\
**Category:** PMM 2.x\
**Created:** [May 15, 2023, 10:35am UTC](https://forums.percona.com/t/impact-of-tempdir-tmp/22059 "2023-05-15T10:35:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naresh9999](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/naresh9999/32/5568_2.png) [@Naresh9999](https://forums.percona.com/u/Naresh9999)\
**Post date:** [May 15, 2023, 10:35am UTC](https://forums.percona.com/t/impact-of-tempdir-tmp/22059/1 "2023-05-15T10:35:07Z")

</div>

How does the tmp directory affect things—does it constantly fill up with data? alternatively, rotate the data?  
Could someone kindly explain to me about the tempdir? Why, as there is only 30GB of space available on the root directory for production, which includes tempdir. In this situation, would using the default tmp path have any consequences?

[root@test401 ~]# cat /usr/local/percona/pmm2/config/pmm-agent.yaml

# Updated by `pmm-agent setup`.

* * *

id: /agent\_id/aaa3467c-32e4-49ae-91eb-397c51d981b7  
listen-address: 127.0.0.1  
listen-port: 7777  
server:  
address: 192.168.1.1:443  
username: admin  
password:  
insecure-tls: true  
paths:  
paths\_base: /usr/local/percona/pmm2  
exporters\_base: /usr/local/percona/pmm2/exporters  
node\_exporter: /usr/local/percona/pmm2/exporters/node\_exporter  
mysqld\_exporter: /usr/local/percona/pmm2/exporters/mysqld\_exporter  
mongodb\_exporter: /usr/local/percona/pmm2/exporters/mongodb\_exporter  
postgres\_exporter: /usr/local/percona/pmm2/exporters/postgres\_exporter  
proxysql\_exporter: /usr/local/percona/pmm2/exporters/proxysql\_exporter  
rds\_exporter: /usr/local/percona/pmm2/exporters/rds\_exporter  
azure\_exporter: /usr/local/percona/pmm2/exporters/azure\_exporter  
vmagent: /usr/local/percona/pmm2/exporters/vmagent  
**tempdir: /tmp**  
pt\_summary: /usr/local/percona/pmm2/tools/pt-summary  
pt\_pg\_summary: /usr/local/percona/pmm2/tools/pt-pg-summary  
pt\_mysql\_summary: /usr/local/percona/pmm2/tools/pt-mysql-summary  
pt\_mongodb\_summary: /usr/local/percona/pmm2/tools/pt-mongodb-summary  
ports:  
min: 42000  
max: 51999  
debug: false  
trace: false  
[root@test401 ~]#

---

<div class="post-metadata">

**Author:** ![steve.hoffman](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/steve.hoffman/32/66_2.png) [@steve.hoffman](https://forums.percona.com/u/steve.hoffman)\
**Post date:** [May 15, 2023, 3:30pm UTC](https://forums.percona.com/t/impact-of-tempdir-tmp/22059/2 "2023-05-15T15:30:56Z")

</div>

I don’t know all the things that use tempdir but the one I do know is pmm-agent (technically vmagent) caches metrics there should the pmm-server be unreachable (i.e. offline mode). By default it will store 1GB of “offline” metrics and then start dropping the oldest metrics in favor of new ones once the file hits max size. Once the pmm server is back online the metrics will drain and the space freed up.

---

<div class="post-metadata">

**Author:** ![Naresh9999](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/naresh9999/32/5568_2.png) [@Naresh9999](https://forums.percona.com/u/Naresh9999)\
**Post date:** [May 15, 2023, 5:51pm UTC](https://forums.percona.com/t/impact-of-tempdir-tmp/22059/3 "2023-05-15T17:51:43Z")

</div>

@steve.hoffman , thank you very much.

I now have clarity, so we can move on with the production servers.
