locked
Windows 10 LTSB Memory Fragmentation RRS feed

  • Question

  • I am facing a memory fragmentation issue in our 32 bit app (C++ and WPF based). when we run it for 100 hrs. as part of automated test. Application crashes after running AST for ~14 hrs.

    I use CRT heap with LFH policy (Low fragment Heap) exclusively enabled in Main(). Problem is coming on windows 10 platform. No issue on Windows 8 platform with same set of our application binaries. We completed 100 hrs. run for test in windows 8 platform.

    I also create a large block heap in Main() method and this heap we use for specific purpose when we need a large amount of memory and we are managing it in our code. From Virtual Memory Statistics logs we can see that initial virtual memory allocation is 1.79 GB.

    After 14 hrs. of automated test run : on windows 10

      Combined Available = 1590176752( 1516.511 MB)
      Combined Max Available = 3989504( 3.805 MB)
      Combined Frag Percent = 99.75%

      CRT:sum_alloc          = 2737569144(98.50%, 2610.749 MB)
      CRT:max_alloc          =    4458496(          4.252 MB)
      CRT:allocAverageSize   =       9043
      CRT:num_free_blocks    =      37813
      CRT:sum_free           =   22620888( 0.81%,  21.573 MB)
      CRT:max_free           =     514104(          0.490 MB)

      VM:sum_free = 1581957120(36.83%,1508.672 MB)
      VM:max_free = 10321920( 9.844 MB)

    On windows 8 for 100 hrs.

    • Combined Available = 1881204960( 1794.057 MB)

    • Combined Max Available = 1734127616( 1653.793 MB)

    • Combined Frag Percent = 7.82%

    • VM:sum_free = 1845817344(42.98%,1760.309 MB)

    • VM:max_free = 1734127616( 1653.793 MB)

    No code change before migrating windows 8 to windows 10 LTSB.

    I am using ADPlus and (debugging tools for Windows, Windbg and DebugDiag) tool to collect memory dumps at interval of 3 hrs.

    Is there any setting or flag which I need to enable or anything I have to do withy code, using VS2010.

    Application is based on Windows 10 LTSB (which is very specific Enterprise OS version for windows 10, gives stability and security)

    20171128 18:09:08.000000 [Windows]           Category:Application Severity:ERROR Details:XXXXX:"EventName: errh:NewFailure FieldServiceText: Failed to allocate memory. File,LineNumber: XXXXX.cpp,479 StationName: DP DateTime: 20171128180908023 ProcessName: XXXXX.exe Additional Details: Size of malloc or new attempted: 2,097,667DiagnosticCode: 0001.DT3G6P92.0    "

    In Win event logs:

    DateTime: 20171128180908023

    XXXXX.exe

    Additional Details:
    Size of malloc or new attempted: 2,097,667DiagnosticCode: 0001.DT3G6P92.0


    Wednesday, November 29, 2017 6:07 AM

Answers

All replies