Opened 11 years ago

Closed 11 years ago

#21 closed defect (fixed)

Frequent memory allocation (TMuC 0.5, revision 81)

Reported by: li@… Owned by: fbossen
Priority: minor Milestone:
Component: HM Version:
Keywords: Cc: fbossen, ksuehring, davidf, jct-vc@…

Description

During tracing memory leak, we noticed a problem with the current ALF, CABAC and PIPE.

When using encoder_lowdelay_loco.cfg code 3 WQGVA frames (gop size=2, 1 intra frame), 4452 times of memory allocation were recorded.

When using encoder_lowdelay_loco.cfg and --ALF=1, memory allocation is increased to 327,753 times.

When using encoder_lowdely_loco.cfg and --SymbolMode=1 (CABAC), memory allocation is increased to 12,396,839 times.

When using encoder_lowdely_loco.cfg and --SymbolMode=2 (PIPE), memory allocation is increased to 12,396,839 times. (I was some surprised that we got the exact same number for CABAC and PIPE.)

In principle, too frequent memory allocation will slow down the coding speed and lead to memory fragmentation. We think it is better to improve the related code.

Change History (6)

comment:1 Changed 11 years ago by fbossen

  • Owner set to fbossen
  • Status changed from new to accepted

Issue has been traced to following functions:
TEncAdaptiveLoopFilter::xInitParam
TComTrQuant::xRateDistOptQuant

comment:2 Changed 11 years ago by fbossen

Issue in TComTrQuant::xRateDistOptQuant was resolved in revision 84.

comment:3 Changed 11 years ago by fbossen

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in r170 and r171

comment:4 Changed 10 years ago by davidf

  • Component set to HM

Updating component after adding WD (Text) tickets

comment:5 Changed 9 years ago by davidf

  • Cc fbossen ksuehring davidf added

comment:6 Changed 9 years ago by davidf

  • Cc jct-vc@… added
Note: See TracTickets for help on using tickets.

This list contains all users that will be notified about changes made to this ticket.

These roles will be notified: Reporter, Owner, Subscriber, Participant

  • David Flynn(Subscriber, Participant)
  • Frank Bossen(Owner, Subscriber, Participant)
  • jct-vc@…(Subscriber)
  • karl.sharman@…(Always)
  • Karsten Suehring(Subscriber, Always)
  • li@…(Reporter)