Ok, setting PS_MAX_MEMORY_MB and PS_MAX_RSS_MEMORY_MB both to 8000 allows me to see more progress, but sync eventually stops with a recurring error that looks like this:
{"ts":1673928004318,"l":"warn","ctx":"work.CpuUsage","msg":"Current system load is too high to schedule more work","meta":{"currentBusyPct":100,"max":150}}
{"ts":1673928012346,"l":"warn","ctx":"time(tag.read())","msg":"unsettled for 3626ms"}
As you can see, I set PS_CPU_MAX_LOAD_PERCENT to 150 in an effort to cajole photostructure to continue, but to no avail
After that it just periodically prints an error which also occurs throughout the sync and seemingly does not affect the progress then:
{"ts":1673955914566,"l":"warn","ctx":"Error","msg":"onError(): ENOENT: no such file or directory, open '/ps/library/.photostructure/cache-1026/readdircache/8d/60/bhg3gvfdtz7z8cczyfvn.json.gz' at (missing stack)","meta":{"event":"nonFatal","message":"unhandledRejection"}}
{"ts":1673955921561,"l":"warn","ctx":"async.Deferred(WritableToBuffer)","msg":".reject()","meta":"ENOENT: no such file or directory, open '/ps/library/.photostructure/cache-1026/readdircache/8d/60/bhg3gvfdtz7z8cczyfvn.json.gz' at (missing stack)"}
{"ts":1673955921562,"l":"warn","ctx":"Error","msg":"onError(): ENOENT: no such file or directory, open '/ps/library/.photostructure/cache-1026/readdircache/8d/60/bhg3gvfdtz7z8cczyfvn.json.gz' at (missing stack)","meta":{"event":"nonFatal","message":"unhandledRejection"}}
{"ts":1673955956564,"l":"warn","ctx":"async.Deferred(WritableToBuffer)","msg":".reject()","meta":"ENOENT: no such file or directory, open '/ps/library/.photostructure/cache-1026/readdircache/8d/60/bhg3gvfdtz7z8cczyfvn.json.gz' at (missing stack)"}
{"ts":1673955956565,"l":"warn","ctx":"Error","msg":"onError(): ENOENT: no such file or directory, open '/ps/library/.photostructure/cache-1026/readdircache/8d/60/bhg3gvfdtz7z8cczyfvn.json.gz' at (missing stack)","meta":{"event":"nonFatal","message":"unhandledRejection"}}
{"ts":1673955963566,"l":"warn","ctx":"async.Deferred(WritableToBuffer)","msg":".reject()","meta":"ENOENT: no such file or directory, open '/ps/library/.photostructure/cache-1026/readdircache/8d/60/bhg3gvfdtz7z8cczyfvn.json.gz' at (missing stack)"}
{"ts":1673955963567,"l":"warn","ctx":"Error","msg":"onError(): ENOENT: no such file or directory, open '/ps/library/.photostructure/cache-1026/readdircache/8d/60/bhg3gvfdtz7z8cczyfvn.json.gz' at (missing stack)","meta":{"event":"nonFatal","message":"unhandledRejection"}}
At this point, âphotostructure syncâ is sitting there consuming 50% of a single CPU core, not making any progress and not writing any more logs