# Powershell script about filesystem memory in windows

**URL:** <https://forum.storj.io/t/powershell-script-about-filesystem-memory-in-windows/27177>\
**Category:** Node Operators\
**Tags:** windows, hardware\
**Created:** [July 18, 2024, 1:48pm UTC](https://forum.storj.io/t/powershell-script-about-filesystem-memory-in-windows/27177 "2024-07-18T13:48:43Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vadim](https://storj.bcdn.literatehosting.com/letter_avatar/vadim/32/6_449c533f586939b6e5f246632a46421f.png) [@Vadim](https://forum.storj.io/u/Vadim)\
**Post date:** [July 18, 2024, 1:48pm UTC](https://forum.storj.io/t/powershell-script-about-filesystem-memory-in-windows/27177/1 "2024-07-18T13:48:43Z")

</div>

Hello, I found powershel script that show how much filesystem memory min and max you have on windows, there is also link that can change that. as I understand this is how much mft windows cache. this amount directly influence how fast system search files on hdd.  
Script is open source no need to run any unknowns exe.  
[pinvoke - c# get system file cache size - Stack Overflow](https://stackoverflow.com/questions/5898843/c-sharp-get-system-file-cache-size/17875550#17875550)  
So any precisions from experience windows users?

---

<div class="post-metadata">

**Author:** ![pangolin](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/pangolin/32/15685_2.png) [@pangolin](https://forum.storj.io/u/pangolin)\
**Post date:** [July 18, 2024, 2:27pm UTC](https://forum.storj.io/t/powershell-script-about-filesystem-memory-in-windows/27177/2 "2024-07-18T14:27:58Z")

</div>

We don’t want to reduce metadata caching, so probably not the solution for storj.

---

<div class="post-metadata">

**Author:** ![Vadim](https://storj.bcdn.literatehosting.com/letter_avatar/vadim/32/6_449c533f586939b6e5f246632a46421f.png) [@Vadim](https://forum.storj.io/u/Vadim)\
**Post date:** [July 18, 2024, 2:31pm UTC](https://forum.storj.io/t/powershell-script-about-filesystem-memory-in-windows/27177/3 "2024-07-18T14:31:27Z")

</div>

this is not about reducing it, we can sett it bigger, also this information gives us that ntfs mft can also be cached and work faster.

---

<div class="post-metadata">

**Author:** ![pangolin](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/pangolin/32/15685_2.png) [@pangolin](https://forum.storj.io/u/pangolin)\
**Post date:** [July 18, 2024, 2:48pm UTC](https://forum.storj.io/t/powershell-script-about-filesystem-memory-in-windows/27177/4 "2024-07-18T14:48:44Z")

</div>

Isn’t using all available RAM for caching the default? If so using those functions makes sense only to reduce.

---

<div class="post-metadata">

**Author:** ![Vadim](https://storj.bcdn.literatehosting.com/letter_avatar/vadim/32/6_449c533f586939b6e5f246632a46421f.png) [@Vadim](https://forum.storj.io/u/Vadim)\
**Post date:** [July 18, 2024, 3:04pm UTC](https://forum.storj.io/t/powershell-script-about-filesystem-memory-in-windows/27177/5 "2024-07-18T15:04:13Z")

</div>

my pc use only up to 50% of ram for cache, if ram is needed it reduce it itselft.  
So bigger ram fit more mft  
before was told that only linux cache metadata, but now we see windows make the same

---

<div class="post-metadata">

**Author:** ![pangolin](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/pangolin/32/15685_2.png) [@pangolin](https://forum.storj.io/u/pangolin)\
**Post date:** [July 18, 2024, 3:13pm UTC](https://forum.storj.io/t/powershell-script-about-filesystem-memory-in-windows/27177/6 "2024-07-18T15:13:12Z")

</div>

This is my windows server. All RAM used for something, most of the cache is metadata. I don’t think there is much to gain with tuning.

 ![memory](https://storj-s3.bcdn.literatehosting.net/original/3X/6/1/61d0b664c230ddd61aa677444395b1e3f42ff086.jpeg)

---

<div class="post-metadata">

**Author:** ![Vadim](https://storj.bcdn.literatehosting.com/letter_avatar/vadim/32/6_449c533f586939b6e5f246632a46421f.png) [@Vadim](https://forum.storj.io/u/Vadim)\
**Post date:** [July 18, 2024, 3:18pm UTC](https://forum.storj.io/t/powershell-script-about-filesystem-memory-in-windows/27177/7 "2024-07-18T15:18:29Z")

</div>

not a lot users have windows server, also you have 50gb of ram? not a lot people have this amount also.

---

<div class="post-metadata">

**Author:** ![pangolin](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/pangolin/32/15685_2.png) [@pangolin](https://forum.storj.io/u/pangolin)\
**Post date:** [July 18, 2024, 3:27pm UTC](https://forum.storj.io/t/powershell-script-about-filesystem-memory-in-windows/27177/8 "2024-07-18T15:27:02Z")

</div>

RAM is 48GB which is low in my opinion for running multiple storagenodes but I use what I have…

---

<div class="post-metadata">

**Author:** ![Vadim](https://storj.bcdn.literatehosting.com/letter_avatar/vadim/32/6_449c533f586939b6e5f246632a46421f.png) [@Vadim](https://forum.storj.io/u/Vadim)\
**Post date:** [July 18, 2024, 3:50pm UTC](https://forum.storj.io/t/powershell-script-about-filesystem-memory-in-windows/27177/9 "2024-07-18T15:50:40Z")

</div>

I mostly have 24-32 gb of ram, now i think about plan haw to upgrade.

---

<div class="post-metadata">

**Author:** ![pangolin](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/pangolin/32/15685_2.png) [@pangolin](https://forum.storj.io/u/pangolin)\
**Post date:** [July 18, 2024, 4:05pm UTC](https://forum.storj.io/t/powershell-script-about-filesystem-memory-in-windows/27177/10 "2024-07-18T16:05:10Z")

</div>

In my opinion ZFS might be the best for such system. This sounds curious because ZFS is known for needing much RAM. But when having metadata and database on SSD all remaining HDD access is randow and needs no cache. I am just testing such setup.
