# Further lazy file walker work?

**URL:** <https://forum.storj.io/t/further-lazy-file-walker-work/22914>\
**Category:** Node Operators\
**Tags:** hardware\
**Created:** [June 11, 2023, 8:59pm UTC](https://forum.storj.io/t/further-lazy-file-walker-work/22914 "2023-06-11T20:59:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Toyoo](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/toyoo/32/1126_2.png) [@Toyoo](https://forum.storj.io/u/Toyoo)\
**Post date:** [June 11, 2023, 8:59pm UTC](https://forum.storj.io/t/further-lazy-file-walker-work/22914/1 "2023-06-11T20:59:44Z")

</div>

I wonder, is there further work on the lazy GC file walker planned? I see that right now code does collect pieces to be moved to thrash as part of the process with lowered I/O priority, but the part that actually moves files to trash and removes files is not—it’s still part of the main process. Though that would require writing to the piece expiration database from the low-I/O priority thread.

I imagine (though this is just a hypothesis, not something I measured) that in low memory nodes moving files to trash immediatelly might be using less I/O (and hence being faster) than first collecting, only then batch-moving might be faster, as the files’ metadata would not have to be re-read for the move.

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [June 12, 2023, 12:48am UTC](https://forum.storj.io/t/further-lazy-file-walker-work/22914/2 "2023-06-12T00:48:39Z")

</div>

> [@Toyoo](#):
>
> is there further work on the lazy GC file walker planned?

As of [v1.81.1-rc](https://github.com/storj/storj/releases/tag/v1.81.1-rc)

> <https://github.com/storj/storj/commit/b64179c>
>
> With this change we are directly testing how the command
> is executed when the ar…gs are passed
> 
> Change-Id: Ibb33926014c9d71c928e0fd374bf4edc5a8a1232
