Skip to content

Behavioral change/Performance issue in lx_nand_flash_sector_release. #70

@ChunBoo

Description

@ChunBoo

Hi Team,

I am writing to report a performance issue caused by a behavioral change in file deletion.

  • Current Behavior (Latest): lx_nand_flash_sector_release invokes lx_nand_flash_driver_pages_copy (causing actual page writes) even when >90% of blocks are free.
  • Previous Behavior (v6.1.12): The function simply marked corresponding pages as obsolete, completely avoiding R/W overhead.
  • Performance Impact: Introduces unnecessary I/O during file deletion, causing a noticeable performance drop in mostly-empty flash scenarios.

Proposed Solution:
Could we revert to or re-implement the v6.1.12 logic to only trigger page copies when free blocks fall below a certain threshold?

Looking forward to hearing your thoughts on this.

Best regards,
Bob

Metadata

Metadata

Assignees

Labels

featureNew feature or enhancement request

Type

No type
No fields configured for issues without a type.

Projects

Status
In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions