# Windows Node optimisation

**URL:** <https://forum.storj.io/t/windows-node-optimisation/22560>\
**Category:** getting started\
**Tags:** windows-gui, windows, hardware\
**Created:** [May 4, 2023, 7:16pm UTC](https://forum.storj.io/t/windows-node-optimisation/22560 "2023-05-04T19:16:48Z")\
**Posts on this page:** 19\
**Page:** 2

<div class="post-metadata">

**Author:** ![zeroheat](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/zeroheat/32/1134_2.png) [@zeroheat](https://forum.storj.io/u/zeroheat)\
**Post date:** [October 30, 2023, 1:21pm UTC](https://forum.storj.io/t/windows-node-optimisation/22560/21 "2023-10-30T13:21:11Z")

</div>

> [@arrogantrabbit](#):
>
> This is a pretty universal ballpark requirement for most filesystems to work efficiently: if you leave less than 10%-20% (filesystem dependent) free the performance starts suffering. It is not specific to storj, it’s specific to filesystem.

I know these “best practices”. However, i have been working the same way for years, more than 20. And i have never had issues. For example, both of my nodes have been running like that for years, without any issues. I started out with a single 1TB disk. Pretty much i am using old HW, that i have around me. I don’t want to invest.

I have an old workstation z800, that i plat to turn into a storjnode. Making it around 20TB. There i might consider some of these so called “best practices”. But i would never spare 2TB . Maybe 200GB, but we will see. It will take me years to fill in 15+TB anyway 🙂

---

<div class="post-metadata">

**Author:** ![zeroheat](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/zeroheat/32/1134_2.png) [@zeroheat](https://forum.storj.io/u/zeroheat)\
**Post date:** [October 30, 2023, 1:24pm UTC](https://forum.storj.io/t/windows-node-optimisation/22560/22 "2023-10-30T13:24:14Z")

</div>

> [@daki82](#):
>
> There are **never** 20 tb to use on a 20 tb drive.

Yes, everyone knows that.

> [@daki82](#):
>
> 10 gb node data.

you probably meant 10 TB ?

> [@daki82](#):
>
> How much ram has the node and how much is the mft size ?

i don’t know how much RAM is using the node. The workstation has 12GB at the moment. I think it is more than enough. 🙂  
The MFT is 8,57GB

---

<div class="post-metadata">

**Author:** ![zeroheat](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/zeroheat/32/1134_2.png) [@zeroheat](https://forum.storj.io/u/zeroheat)\
**Post date:** [October 30, 2023, 1:26pm UTC](https://forum.storj.io/t/windows-node-optimisation/22560/23 "2023-10-30T13:26:38Z")

</div>

> [@Alexey](#):
>
> if we introduce a bug and your node could use more space than allowed

how can it use more space, than it is allowed? And if does so … then what is the difference ? If i had 10% free space, then it would just eat them for more time, but that bug would eventually eat all of them, no matter how much free space you have 🙂

---

<div class="post-metadata">

**Author:** ![daki82](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/daki82/32/1128_2.png) [@daki82](https://forum.storj.io/u/daki82)\
**Post date:** [October 30, 2023, 1:40pm UTC](https://forum.storj.io/t/windows-node-optimisation/22560/24 "2023-10-30T13:40:07Z")

</div>

> [@zeroheat](#):
>
> Yes, everyone knows that.

I don’t want to lecture you, just state the obvious.

> [@zeroheat](#):
>
> meant 10 TB

Yes. My bad.

> [@zeroheat](#):
>
> The workstation has 12GB at the moment. I think it is more than enough. 🙂  
> The MFT is 8,57GB

This should be enough to defrag the mft.

Wish you luck.

---

<div class="post-metadata">

**Author:** ![daki82](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/daki82/32/1128_2.png) [@daki82](https://forum.storj.io/u/daki82)\
**Post date:** [October 30, 2023, 2:12pm UTC](https://forum.storj.io/t/windows-node-optimisation/22560/25 "2023-10-30T14:12:42Z")

</div>

> [@zeroheat](#):
>
> 16% fragmented. Now after running it for 30h, it says 26,42%. Why is that ? Also the number of fragmented files increases. In the beginning they were less than 400 000, now they are over 660 000. I can’t really understand what that tool does. I am getting afraid of the final result if i leave it to run for a week or more until it finishes. Now it is at about 4,4%

Thats pretty bad numbers and is propably related to the less free space. 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [October 31, 2023, 4:54am UTC](https://forum.storj.io/t/windows-node-optimisation/22560/26 "2023-10-31T04:54:01Z")

</div>

You may notice it before it’s too late and we likely will be able to fix a bug, it’s would buy some time.  
But as I said, it’s still a recommendation, however I feel like 1% is too small for a normal operation.

---

<div class="post-metadata">

**Author:** ![zeroheat](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/zeroheat/32/1134_2.png) [@zeroheat](https://forum.storj.io/u/zeroheat)\
**Post date:** [November 10, 2023, 9:01am UTC](https://forum.storj.io/t/windows-node-optimisation/22560/27 "2023-11-10T09:01:32Z")

</div>

At the moment it is 4%, above 120GB

I am running the defrag tool for almost 4 days and it is still below 14% done. Why is it so slow ? At this rate i am not sure if it will complete by the end of the year. 🙂

 ![image](https://storj-s3.bcdn.literatehosting.net/original/2X/6/624885d35be6eb850636cbcc707e0aa80bbd6822.jpeg)

And as i stated previously in this thread, the % Fragmentation increases, instead of decreasing. This is also something i can not understand. When I tried it few days ago, like i wrote above, it was less than 16% and now as you can see it is above 30 %. Can anyone explain why and how exactly this tool works ?

---

<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:** [November 10, 2023, 9:50am UTC](https://forum.storj.io/t/windows-node-optimisation/22560/28 "2023-11-10T09:50:30Z")

</div>

you have too litle free space, so it try to move things part by part, this increas fragmentation, but as it finish it will go down.

---

<div class="post-metadata">

**Author:** ![zeroheat](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/zeroheat/32/1134_2.png) [@zeroheat](https://forum.storj.io/u/zeroheat)\
**Post date:** [November 10, 2023, 11:47am UTC](https://forum.storj.io/t/windows-node-optimisation/22560/29 "2023-11-10T11:47:16Z")

</div>

But those files are relatively small. Around 2MB each, right ? I have almost 130GB free space. That’s about 130 000MB free space. That is a lot of space for such small files. Isn’t the purpose of defragmentation to collect all the pieces of one file and to combine them together somewhere on the free space area. Or I am missing valuable knowledge on this topic ?

---

<div class="post-metadata">

**Author:** ![daki82](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/daki82/32/1128_2.png) [@daki82](https://forum.storj.io/u/daki82)\
**Post date:** [November 10, 2023, 12:17pm UTC](https://forum.storj.io/t/windows-node-optimisation/22560/30 "2023-11-10T12:17:02Z")

</div>

> [@zeroheat](#):
>
> But those files are relatively small. Around 2MB each, right ? I have almost 130GB free space. That’s about 130 000MB free space. That is a lot of space for such small files.

No, some kb are the most files. The recommendation is 10% free space. For some Reasons, as stated before.  
I suggest you set he node to free some space, through the yaml, and set it to 2.4TB, overused will appear and ingress will be stopped. that speeds things up also.

can take verry long under this circumstances. let it run, or make free space while running.  
or stop it , reach 10%free and start then again.

also take care of the E drive, its pretty full.  
Compare it with a open bucket of acid, you have to carry it by hand, do you fill it to the brim or maybe 10% less?

If bucket stands still, you can fill to the brim, but if you have to move it, then what do you do?

---

<div class="post-metadata">

**Author:** ![zeroheat](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/zeroheat/32/1134_2.png) [@zeroheat](https://forum.storj.io/u/zeroheat)\
**Post date:** [November 10, 2023, 1:19pm UTC](https://forum.storj.io/t/windows-node-optimisation/22560/31 "2023-11-10T13:19:48Z")

</div>

> [@daki82](#):
>
> I suggest you set he node to free some space, through the yaml, and set it to 2.4TB, overused will appear and ingress will be stopped. that speeds things up also.

i have set it to 2TB 1 or 2 weeks or. It drops very slowly.

> [@daki82](#):
>
> If bucket stands still, you can fill to the brim, but if you have to move it, then what do you do?

I don’t plan to move it 🙂

---

<div class="post-metadata">

**Author:** ![daki82](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/daki82/32/1128_2.png) [@daki82](https://forum.storj.io/u/daki82)\
**Post date:** [November 21, 2023, 11:26am UTC](https://forum.storj.io/t/windows-node-optimisation/22560/32 "2023-11-21T11:26:55Z")

</div>

Since i use these two together, here i found an article about Primocache(30day test possible) and Ultradefrag (free use possible).

I bought both, the performance is unbeleavable, even the M2 nvme with the db and orders has ram cache now. The complete node, including all DBs, works now in RAM first, and after 10s data is writen to the drives. Reading of Node data is cached by NVME (500gb for a 20TB drive), Write by RAM.

NVME is cached by RAM (1-3GB is enough)

(As a bonus i cached my “slow” System SATA ssd with 12GB RAM )

This helps alot to win races, but also reduces wear leveling on the SSD, and prevents fragmentation on the HDD.

Verry usefull for SNO with native windows node and already some SSD space left over (50 to 500GB.) will be ok.  
i estimated 25GB read-cache for 1 TB node data.

**Notice that for write caching regardles of medium (ram or ssd or nvme) an UPS is recommendet to prevent data loss.**

**Read cache alone can be done without UPS.**

I installed more RAM, (32 upgraded to 64GB /19GB free atm.) and despite it runs at a lower frequency now, _its fast as f\*\*k_.

> **[UltimateDefrag Tips For Users Of PrimoCache](https://www.disktrix.com/ultimatedefrag-tips-for-users-of-primocache.html)**
>
> Two hard drive performance optimizing utilities with aperfect symbiotic relationship.PrimoCache is a fantastic software utility that effectively turns your regular mechanical hard drive into a hybrid drive that gives you SSD level, and even RAM...

Newest Stats of my nodes:  
1.node DB on USB,  
2.node 1GB RAM Writecache(Primocache)  
all nicely defragmanted  
the 2. node gets around 80-100GB / Month more ingress than 1. (No Neighbors)

Also i made a crappy jpg to visualise the cache structure on the 2. node

 ![cache](https://storj-s3.bcdn.literatehosting.net/original/2X/f/f4a02bf59b3d491e2015b5c6b5ad1297e63473b7.jpeg)

---

<div class="post-metadata">

**Author:** ![zeroheat](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/zeroheat/32/1134_2.png) [@zeroheat](https://forum.storj.io/u/zeroheat)\
**Post date:** [December 13, 2023, 9:01am UTC](https://forum.storj.io/t/windows-node-optimisation/22560/33 "2023-12-13T09:01:27Z")

</div>

The defragmentation of the drive finally completed.  
Almost a month passed.

---

<div class="post-metadata">

**Author:** ![zeroheat](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/zeroheat/32/1134_2.png) [@zeroheat](https://forum.storj.io/u/zeroheat)\
**Post date:** [December 24, 2023, 8:22am UTC](https://forum.storj.io/t/windows-node-optimisation/22560/34 "2023-12-24T08:22:39Z")

</div>

> [@daki82](#):
>
> This helps alot to win races, but also reduces wear leveling on the SSD, and prevents fragmentation on the HDD.

I got a bit curious. How exactly did you manage to prove or measure that ? Or you are just speculating?

---

<div class="post-metadata">

**Author:** ![daki82](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/daki82/32/1128_2.png) [@daki82](https://forum.storj.io/u/daki82)\
**Post date:** [December 24, 2023, 9:15am UTC](https://forum.storj.io/t/windows-node-optimisation/22560/35 "2023-12-24T09:15:47Z")

</div>

Its faster, so chance is higher against a node in similar reach but with classic hdd reading.

If i compare my 2 nodes, slow has around 350gb egress / 8.6TB data,  
fast has 150gb egress /2.3TB node data. its not much of a proof, but all have.

Writes are more en block, so hdd can handle it better=less fragmentation (seen in ultradefrag)

wear leveling reduction can be seen in stats of primocache.

 ![db cache hit](https://storj-s3.bcdn.literatehosting.net/original/2X/f/f90fe1db7f05a86ccf98437b76fe5383db75f0b9.png)  
It saves 10-20% writes (picture nvme with databases +orders)

---

<div class="post-metadata">

**Author:** ![pdeline06](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/pdeline06/32/1129_2.png) [@pdeline06](https://forum.storj.io/u/pdeline06)\
**Post date:** [December 24, 2023, 8:10pm UTC](https://forum.storj.io/t/windows-node-optimisation/22560/36 "2023-12-24T20:10:12Z")

</div>

Why you don’t use L2 cashe?

---

<div class="post-metadata">

**Author:** ![daki82](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/daki82/32/1128_2.png) [@daki82](https://forum.storj.io/u/daki82)\
**Post date:** [December 24, 2023, 10:27pm UTC](https://forum.storj.io/t/windows-node-optimisation/22560/37 "2023-12-24T22:27:02Z")

</div>

> [@pdeline06](#):
>
> Why you don’t use L2 cashe?

I do not understand the Question.

Its an nvme pcie gen.3 so everything i have is slower exept ram aka L1.

**I use L2 for the read cache of the hdd.**  
Its just another statistic wich i not posted as picture so far.

It counts as written for the os as soon data is in L1. So an additional L2 layer is pointless. In my case, i think.  
Node writes are not that important to cache all of them for a long time.  
As long an ups ensures the writes in case of power failure.  
Readings from hdd will land in the L2 (500GB nvme)wich is located on the same nvme.(different hidden partition)

---

<div class="post-metadata">

**Author:** ![Ruskiem](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ruskiem/32/64_2.png) [@Ruskiem](https://forum.storj.io/u/Ruskiem)\
**Post date:** [May 4, 2024, 6:04pm UTC](https://forum.storj.io/t/windows-node-optimisation/22560/38 "2024-05-04T18:04:58Z")

</div>

> [@daki82](#):
>
> i estimated 25GB read-cache for 1 TB node data.

OMG why so much?  
i have like 25GB of SSD space for a whole VM node instance, (windows 10 is installed and storj on that C:\ and has just enough space for logs, to rotate) so if i have 150TB total in 13 disks, i need 3,75TB of SSD to cache all that filewalkers?  
can it be much less some how?  
i just want to cache used-space-filewalker, and gc-filewalker  
im interested with cache but not 25GB per 1TB “God, no, please, No”

EDIT: MFT for a 14,5TB storj’s disk, Ultradefrag shows me its 67,90GB of MFT  
So i guess eventual cache should at least be able to deal with that?  
Tho i don’t know if cacheing a disk’s MFT, will give the filewalker a files, it wants during the walk!

---

<div class="post-metadata">

**Author:** ![daki82](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/daki82/32/1128_2.png) [@daki82](https://forum.storj.io/u/daki82)\
**Post date:** [May 4, 2024, 6:57pm UTC](https://forum.storj.io/t/windows-node-optimisation/22560/39 "2024-05-04T18:57:48Z")

</div>

> [@Ruskiem](#):
>
> OMG why so much?

Hot node data also gets cached. (Actual it uses 325GB for 5TB node data, this may vary with node performance)  
Small cache for MFT is not configurable in primocache. You select only drives letters.

[Previous page](https://forum.storj.io/t/windows-node-optimisation/22560.md?page=1)
