# What process fills the disk every 2 hours?

**URL:** https://meta.discourse.org/t/what-process-fills-the-disk-every-2-hours/374174
**Category:** Self-hosting
**Tags:** hosting
**Created:** [July 14, 2025, 7:32pm UTC](https://meta.discourse.org/t/what-process-fills-the-disk-every-2-hours/374174 "2025-07-14T19:32:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [July 14, 2025, 7:32pm UTC](https://meta.discourse.org/t/what-process-fills-the-disk-every-2-hours/374174/1 "2025-07-14T19:32:09Z")

</div>

I have a site with a 100 GB database on a 160GB SSD. Images on S3.

Every two hours postgres does something that fills the disk. It’s not a backup.

I guess I should just up the disk to 200GB?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [July 19, 2025, 4:10pm UTC](https://meta.discourse.org/t/what-process-fills-the-disk-every-2-hours/374174/2 "2025-07-19T16:10:20Z")

</div>

Now the disk has 320GB, so there is no way that the disk is getting full, but still every two hours I get this:

```plaintext
Job exception: PG::DiskFull: ERROR: could not resize shared memory segment "/PostgreSQL.2431023752" to 134217728 bytes: No space left on device CONTEXT: parallel worker
4:31 am
17
Job exception: Failed to open TCP connection to 84.247.3.95:80 (Connection refused - connect(2) for "84.247.3.95" port 80)
5:56 am
Job exception: PG::DiskFull: ERROR: could not resize shared memory segment "/PostgreSQL.4192722046" to 134217728 bytes: No space left on device CONTEXT: parallel worker
6:26 am
Job exception: PG::DiskFull: ERROR: could not resize shared memory segment "/PostgreSQL.175048658" to 134217728 bytes: No space left on device
8:32 am
3
MD Composer Extras theme/component is throwing errors: TypeError: Cannot read properties of null (reading 'es')
8:36 am
86
Unicorn worker received USR2 signal indicating it is about to timeout, dumping backtrace for main thread config/unicorn.conf.rb:203:in `backtrace' config/unicorn.conf.rb:203:in `block (2 levels) in re
8:50 am
Job exception: PG::DiskFull: ERROR: could not resize shared memory segment "/PostgreSQL.2657529202" to 134217728 bytes: No space left on device CONTEXT: parallel worker

```

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/9/a/59afe83d4e3726ac8df9f1b6d1aa8901464c0ccb.png)

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [July 19, 2025, 4:46pm UTC](https://meta.discourse.org/t/what-process-fills-the-disk-every-2-hours/374174/3 "2025-07-19T16:46:13Z")

</div>

> [@pfaffman](#):
>
> `could not resize shared memory segment`

stackoverflow [suggests](https://stackoverflow.com/questions/56751565/pq-could-not-resize-shared-memory-segment-no-space-left-on-device)

> This is because docker [by-default](https://github.com/moby/moby/issues/29492) restrict size of shared memory to `64MB`.
> 
> You can override this default value by using `--shm-size` option in `docker run`.
