Skip to content

cptofs: Add cli option to specify memory parameter#620

Open
jsoo1 wants to merge 1 commit intolkl:masterfrom
jsoo1:cptofs-kernel-parameters-opt
Open

cptofs: Add cli option to specify memory parameter#620
jsoo1 wants to merge 1 commit intolkl:masterfrom
jsoo1:cptofs-kernel-parameters-opt

Conversation

@jsoo1
Copy link

@jsoo1 jsoo1 commented Feb 12, 2026

Previously the 100M memory used for cptofs would often OOM and panic when writing filesystems with resulting sizes of multiple gigabytes. Allowing the user to tune the memory in use alleviates them from having to patch cptofs to accomplish this.

Fixes: #466

Copy link

@ddiss ddiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patches!

@jsoo1 jsoo1 force-pushed the cptofs-kernel-parameters-opt branch from 0f079f2 to 9f042b4 Compare February 12, 2026 06:41
@jsoo1 jsoo1 changed the title cptofs: Add cli option to specify kernel/memory parameters cptofs: Add cli option to specify memory parameter Feb 12, 2026
Copy link

@ddiss ddiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@jsoo1 jsoo1 force-pushed the cptofs-kernel-parameters-opt branch from 9f042b4 to 91d10dc Compare February 12, 2026 07:37
@jsoo1
Copy link
Author

jsoo1 commented Feb 12, 2026

Thank you! Last patch revision just adjusts spaces for tabs. Cheers!

@ddiss
Copy link

ddiss commented Feb 15, 2026

@jsoo1 I just noticed the commit message is missing your Signed-off-by tag.
Please add it as per https://github.com/lkl/linux/blob/master/Documentation/process/submitting-patches.rst#sign-your-work---the-developers-certificate-of-origin

Fixes OOM panics when copying results in a very large filesystem.

--mb matches the lklfuse mb option.

Fixes lkl#466

Signed-off-by: John Soo <johh.soo@arista.com>
@jsoo1 jsoo1 force-pushed the cptofs-kernel-parameters-opt branch from 91d10dc to 9dcd61a Compare February 16, 2026 03:42
@jsoo1
Copy link
Author

jsoo1 commented Feb 16, 2026

@jsoo1 I just noticed the commit message is missing your Signed-off-by tag. Please add it as per https://github.com/lkl/linux/blob/master/Documentation/process/submitting-patches.rst#sign-your-work---the-developers-certificate-of-origin

Oh thanks, signed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cptofs hangs with 100% CPU usage for >64G volumes

2 participants