# Missing cpu.cfs\_period\_us, cpu.cfs\_quota\_us and cpu.stat on raspberry pi 4

**URL:** https://discuss.elastic.co/t/missing-cpu-cfs-period-us-cpu-cfs-quota-us-and-cpu-stat-on-raspberry-pi-4/235411
**Category:** Logstash
**Created:** [June 2, 2020, 9:31pm UTC](https://discuss.elastic.co/t/missing-cpu-cfs-period-us-cpu-cfs-quota-us-and-cpu-stat-on-raspberry-pi-4/235411 "2020-06-02T21:31:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Sonkun](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@Sonkun](https://discuss.elastic.co/u/Sonkun)
#### Post date: [June 2, 2020, 9:31pm UTC](https://discuss.elastic.co/t/missing-cpu-cfs-period-us-cpu-cfs-quota-us-and-cpu-stat-on-raspberry-pi-4/235411/1 "2020-06-02T21:31:49Z")

</div>

Hi, Logstash (7.7.0) all time (every 5 sec) prints information about missing files (logstash is working, but has some memory leak - I'm not sure is that correlated):

```auto
[DEBUG][logstash.instrument.periodicpoller.cgroup.cpuresource] File /sys/fs/cgroup/cpu/cpu.cfs_period_us cannot be found, try providing an override 'ls.cgroup.cpu.path.override' in the Logstash JAVA_OPTS environment variable
[DEBUG][logstash.instrument.periodicpoller.cgroup.cpuresource] File /sys/fs/cgroup/cpu/cpu.cfs_quota_us cannot be found, try providing an override 'ls.cgroup.cpu.path.override' in the Logstash JAVA_OPTS environment variable
[DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"ParNew"}
[DEBUG][logstash.instrument.periodicpoller.cgroup.cpuresource] File /sys/fs/cgroup/cpu/cpu.stat cannot be found, try providing an override 'ls.cgroup.cpu.path.override' in the Logstash JAVA_OPTS environment variable
[DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=>"ConcurrentMarkSweep"}

```

I found information why that files are not in raspbian, kerner compilation must have CONFIG\_CFS\_BANDWIDTH, but default it's disabled.  
So I wondering if it's a posibility to workaround it (eg. create that files with some values manualy and force logstash to using them). But I'm not sure what is a role of that files in Logstash, and what value should be there.  
I want to avoid recompiling kerner with that flag.

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [June 2, 2020, 9:59pm UTC](https://discuss.elastic.co/t/missing-cpu-cfs-period-us-cpu-cfs-quota-us-and-cpu-stat-on-raspberry-pi-4/235411/2 "2020-06-02T21:59:07Z")

</div>

Those are DEBUG messages telling you those files do not exist. That is not a problem. They are reported periodically because logstash wants to support the mounting of the cgroups filesystem after it has started.

If you want to create dummy files I would definitely use overrides to put them outside the /proc and /sys/fs/cgroup filesystems. The proc and cgroups man pages have pointers to the kernel documentation around what is in those files, but I believe they are basically text files with a few numbers in them.

---

<div class="post-metadata">

### Author: ![Sonkun](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@Sonkun](https://discuss.elastic.co/u/Sonkun)
#### Post date: [June 2, 2020, 10:01pm UTC](https://discuss.elastic.co/t/missing-cpu-cfs-period-us-cpu-cfs-quota-us-and-cpu-stat-on-raspberry-pi-4/235411/3 "2020-06-02T22:01:35Z")

</div>

Yeah, that files has some simple numeric values, but I'm not sure what values should be best for Raspberry 4.

---

<div class="post-metadata">

### Author: ![Sonkun](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@Sonkun](https://discuss.elastic.co/u/Sonkun)
#### Post date: [June 3, 2020, 12:00am UTC](https://discuss.elastic.co/t/missing-cpu-cfs-period-us-cpu-cfs-quota-us-and-cpu-stat-on-raspberry-pi-4/235411/4 "2020-06-03T00:00:37Z")

</div>

I've created that 3 files with some values (from other debian instance) and debug stop print that message about missing files. For that you need to set relative path to that files in startup.options

```auto
LS_JAVA_OPTS="-Dls.cgroup.cpu.path.override=../../../../new/path/"

```

cpu.cfs\_period\_us

```auto
1000000

```

cpu.cfs\_quota\_us

```auto
-1

```

cpu.stat

```auto
nr_periods 0
nr_throttled 0
throttled_time 0

```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 1, 2020, 12:11am UTC](https://discuss.elastic.co/t/missing-cpu-cfs-period-us-cpu-cfs-quota-us-and-cpu-stat-on-raspberry-pi-4/235411/5 "2020-07-01T00:11:12Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
