You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is your current rclone version (output from rclone version)?
1.72.0
What problem are you are trying to solve?
It is difficult for rclone to test the download speed of a remote storage which has higher performance than localfs. The most ideal way is to use /dev/null (io.Discard) as dst. But at present, rclone does not have this method.
How do you think rclone should be changed to solve that?
can we impl a nullfs. and also use /dev/null as nullfs alias
How to use GitHub
Please use the 👍 reaction to show that you are affected by the same issue.
Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
Subscribe to receive notifications on status change and new comments.
Activity
darthShadow commentedon Dec 13, 2025
Something like this may work:
hunshcn commentedon Dec 14, 2025
but cannot with --transfers
ncw commentedon Dec 14, 2025
We have the memory backend which might be useful for you: https://rclone.org/memory/
hunshcn commentedon Dec 14, 2025
Memory backend is likely to lead to oom.
If memory backend supports --memory-discoard option, this may be an ideal nullfs.
memory: add --memory-discard flag for speed testing - fixes #9037
ncw commentedon Dec 14, 2025
I guess adding a
--memory-discardoption might be easier than writing anullfsbackend.What would you suggest that option did? Ignore all writes completely? That is likely to upset rclone transfers I think.
Or possibly create files of the given size which don't actually exist and would give an error if read. That might be a better option.
I tried implementing this here
v1.73.0-beta.9360.ab07df40a.fix-9037-memory-discard on branch fix-9037-memory-discard (uploaded in 15-30 mins)
Easiest way to use it is to use
:memory,discard:bucketLet me know what you think
hunshcn commentedon Dec 14, 2025
I think so. Creating files of the given size which don't actually exist and giving an error if read will be better.
I have tried this branch. So good.
hunshcn commentedon Dec 17, 2025
hope merging into master
ncw commentedon Dec 17, 2025
Thanks for testing :-)
I've merged this to master now which means it will be in the latest beta in 15-30 minutes and released in v1.73
memory: add --memory-discard flag for speed testing - fixes rclone#9037
memory: add --memory-discard flag for speed testing - fixes rclone#9037
memory: add --memory-discard flag for speed testing - fixes rclone#9037
Sync from rclone/rclone (#1)
memory: add --memory-discard flag for speed testing - fixes rclone#9037