# Optimal major and minor page faults

**URL:** https://discuss.elastic.co/t/optimal-major-and-minor-page-faults/344838
**Category:** Elasticsearch
**Tags:** elastic-stack-monitoring
**Created:** [October 11, 2023, 4:43pm UTC](https://discuss.elastic.co/t/optimal-major-and-minor-page-faults/344838 "2023-10-11T16:43:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![xrkr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xrkr/32/126455_2.png) [@xrkr](https://discuss.elastic.co/u/xrkr)
#### Post date: [October 11, 2023, 4:43pm UTC](https://discuss.elastic.co/t/optimal-major-and-minor-page-faults/344838/1 "2023-10-11T16:43:54Z")

</div>

Hello All,

I have a 12 node cluster with 64GB RAM and 31GB heap memory. Often late i am having issues with Elasticsearch performance, i happen to observe that there are major and minor page faults as below.

> ps -ef | grep -E "[e]lastic.\*java" | awk '{print $2}' | xargs -I {} ps -o min\_flt,maj\_flt {} && sleep 60 && ps -ef | grep -E "[e]lastic.\*java" | awk '{print $2}' | xargs -I {} ps -o min\_flt,maj\_flt {}  
> MINFL MAJFL  
> 185689007 298915  
> MINFL MAJFL  
> 185717299 298918

> ps -ef | grep -E "[e]lastic.\*java" | awk '{print $2}' | xargs -I {} ps -o min\_flt,maj\_flt {} && sleep 60 && ps -ef | grep -E "[e]lastic.\*java" | awk '{print $2}' | xargs -I {} ps -o min\_flt,maj\_flt {}  
> MINFL MAJFL  
> 283503608 2427945  
> MINFL MAJFL  
> 283544632 2428401

> ps -ef | grep -E "[e]lastic.\*java" | awk '{print $2}' | xargs -I {} ps -o min\_flt,maj\_flt {} && sleep 60 && ps -ef | grep -E "[e]lastic.\*java" | awk '{print $2}' | xargs -I {} ps -o min\_flt,maj\_flt {}  
> MINFL MAJFL  
> 277297674 1118228  
> MINFL MAJFL  
> 277341921 1118338

and so on.

Could this indicate a problem? CPU, Memory, IOWAIT utilizations are pretty much very low values. Increasing the memory beyond 64GB would help?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [October 11, 2023, 6:00pm UTC](https://discuss.elastic.co/t/optimal-major-and-minor-page-faults/344838/2 "2023-10-11T18:00:52Z")

</div>

What is the full output from the [cluster stats API](https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cluster-stats.html)?

---

<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: [November 8, 2023, 6:01pm UTC](https://discuss.elastic.co/t/optimal-major-and-minor-page-faults/344838/3 "2023-11-08T18:01:47Z")

</div>

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