# I set it to niofs but the performance was too poor

**URL:** https://discuss.elastic.co/t/i-set-it-to-niofs-but-the-performance-was-too-poor/297091
**Category:** Elasticsearch
**Created:** [February 14, 2022, 2:02am UTC](https://discuss.elastic.co/t/i-set-it-to-niofs-but-the-performance-was-too-poor/297091 "2022-02-14T02:02:04Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![slowup](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/slowup/32/99097_2.png) [@slowup](https://discuss.elastic.co/u/slowup)
#### Post date: [February 14, 2022, 2:02am UTC](https://discuss.elastic.co/t/i-set-it-to-niofs-but-the-performance-was-too-poor/297091/1 "2022-02-14T02:02:04Z")

</div>

Performance tests were conducted with niofs and hybridfs, but in the case of niofs, 100 TPS hybridfs came out 680 TPS. Why is that?  
Do you have any documentation that goes deeper into niofs, mmapfs, and hybridfs? Help me!

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [February 14, 2022, 5:53pm UTC](https://discuss.elastic.co/t/i-set-it-to-niofs-but-the-performance-was-too-poor/297091/2 "2022-02-14T17:53:16Z")

</div>

The default is `hybridfs` and that's the recommended one to use. Your benchmarks seem to agree. Why do you want to use something else?

---

<div class="post-metadata">

### Author: ![slowup](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/slowup/32/99097_2.png) [@slowup](https://discuss.elastic.co/u/slowup)
#### Post date: [February 15, 2022, 1:50am UTC](https://discuss.elastic.co/t/i-set-it-to-niofs-but-the-performance-was-too-poor/297091/3 "2022-02-15T01:50:23Z")

</div>

@DavidTurner thank you for the reply. I didn't want to change it, I did a test to see which one would perform better. But because there is so much difference, I'm curious as to why the performance difference between nio and hybrid is so large.

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [February 15, 2022, 8:40am UTC](https://discuss.elastic.co/t/i-set-it-to-niofs-but-the-performance-was-too-poor/297091/4 "2022-02-15T08:40:49Z")

</div>

It's complicated, but here's a blog post about it:

> **[Why mmap is faster than system calls](https://sasha-f.medium.com/why-mmap-is-faster-than-system-calls-24718e75ab37)**
>
> When I ask my colleagues why mmap is faster than system calls, the answer is inevitably “system call overhead”: the cost of crossing the…

---

<div class="post-metadata">

### Author: ![slowup](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/slowup/32/99097_2.png) [@slowup](https://discuss.elastic.co/u/slowup)
#### Post date: [February 16, 2022, 8:02am UTC](https://discuss.elastic.co/t/i-set-it-to-niofs-but-the-performance-was-too-poor/297091/5 "2022-02-16T08:02:05Z")

</div>

@DavidTurner thank u!!  
veryvery!

I have one more question, can you answer this?  
There is a link below! Please  
[https://discuss.elastic.co/t/i-wonder-why-docvalues-are-fast-for-sorting/297039/2](https://discuss.elastic.co/t/i-wonder-why-docvalues-are-fast-for-sorting/297039/2)

---

<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: [March 16, 2022, 8:02am UTC](https://discuss.elastic.co/t/i-set-it-to-niofs-but-the-performance-was-too-poor/297091/6 "2022-03-16T08:02:29Z")

</div>

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