Skip to content

[Bug]: VariablePei allocates runtime memory fragmenting memory buckets #11739

@makubacki

Description

@makubacki

Is there an existing issue for this?

  • I have searched existing issues

Bug Type

  • Firmware
  • Tool
  • Unit Test

What packages are impacted?

MdeModulePkg

Which targets are impacted by this bug?

DEBUG, RELEASE

Current Behavior

Commit d8f513d updated MdeModulePkg/Universal/VariablePei/Variable.c to allocate the UEFI variable runtime cache into runtime pages. This runtime allocation does not get consolidated into the runtime memory buckets that are allocated by the DXE Core and stay fragmented throughout boot which impacts hibernate (S4) stability.

Expected Behavior

All runtime allocations for a given runtime memory type should be consolidated in a single memory bucket for that memory type.

Steps To Reproduce

Inspect the runtime memory allocations at End of DXE or Exit Boot Services to see that the UEFI runtime cache range remains separated from the DXE-allocated memory bucket.

Build Environment

N/A

Version Information

Commit: d8f513d+

Urgency

Medium

Are you going to fix this?

I will fix it

Do you need maintainer feedback?

No maintainer feedback needed

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions