Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unreleased heap memory #68

Open
pob1234 opened this issue Jan 19, 2023 · 4 comments
Open

Unreleased heap memory #68

pob1234 opened this issue Jan 19, 2023 · 4 comments

Comments

@pob1234
Copy link

pob1234 commented Jan 19, 2023

Hello,

I found out problem with no releasing heap memory. But this problem appears only when writing into one specified file. This allocated memory is never released.
It seems that every write operations allocates cca 50 bytes, which is not released.
Writting to other files works correctly (but it is possible that there may be more such files with unreleasing heap memory in the file system).

During my investigation, I found that all unreleased blocks of heap memory were allocated within the following functions
jbd_journal_new_trans(),
jbd_trans_set_block_dirty(),
jbd_trans_insert_block_rec()
of the ext4_journal.c module.

The problems will disappear after preparing a version with the journaling functionality disabled
(disabling CONFIG_JOURNALING_ENABLE option), but I think that this is not the right solution to this problem.

I am using configuration file of lwext4 which is attached in this issue.
ext4_config.txt

@kevin-gk
Copy link

Hi,
I have also encountered a similar problem. Have you found the cause?

@Cheng-Li1
Copy link

Hi, I have also encountered a similar problem. Have you found the cause?

Hello, could you give me more context for this problem? Like how do I replicate this issue?

@anymor1024
Copy link

Hi guys,
I have same problem. Please help me.

Thank you very much.

@pob1234
Copy link
Author

pob1234 commented Sep 13, 2024

Hello everyone,

Unfortunately, I haven't been able to fix the problem yet.
I prepared a more detailed description of the problem together with a test PC application, see attachment.
lwext4_problem.zip

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

No branches or pull requests

4 participants