[asterisk-bugs] [JIRA] (ASTERISK-30149) core: minmemfree watermark issue

Cyril Ramière (JIRA) noreply at issues.asterisk.org
Thu Jul 28 03:10:09 CDT 2022


    [ https://issues.asterisk.org/jira/browse/ASTERISK-30149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=259826#comment-259826 ] 

Cyril Ramière commented on ASTERISK-30149:
------------------------------------------

Hi Joshua,

Here are the output of /proc/meminfo when the issue happens:

{code}
cat /proc/meminfo
MemTotal:        2001944 kB
MemFree:           75868 kB
MemAvailable:    1135772 kB
Buffers:           95416 kB
Cached:          1034664 kB
SwapCached:            0 kB
Active:          1220060 kB
Inactive:         513084 kB
Active(anon):     588372 kB
Inactive(anon):      636 kB
Active(file):     631688 kB
Inactive(file):   512448 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                16 kB
Writeback:             0 kB
AnonPages:        603216 kB
Mapped:           170752 kB
Shmem:              1052 kB
Slab:             143280 kB
SReclaimable:      94228 kB
SUnreclaim:        49052 kB
KernelStack:        6560 kB
PageTables:        13544 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     1000972 kB
Committed_AS:    3163136 kB
VmallocTotal:   34359738367 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
HardwareCorrupted:     0 kB
AnonHugePages:      2048 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      143272 kB
DirectMap2M:     1914880 kB
DirectMap1G:           0 kB
{code}

> core: minmemfree watermark issue
> --------------------------------
>
>                 Key: ASTERISK-30149
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30149
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: PBX/General
>    Affects Versions: 18.5.0
>         Environment: AWS Linux 4.14.198-152.320.amzn2.x86_64
>            Reporter: Cyril Ramière
>            Assignee: Cyril Ramière
>
> Hello,
> I have an issue with asterisk stopping accepting new calls.
> When the issue occurs, the console shows those messages:
> ```
> [Jul 21 06:55:49] WARNING[762] pbx.c: Available system memory (~169MB) is below the configured low watermark (200MB)
> [Jul 21 06:55:49] WARNING[762] chan_pjsip.c: Failed to start PBX (call limit reached) 
> ```
> I have set inside asterisk.conf the "minmemfree" value to 200M so this seems right.
> But after checking on the host, I have plenty of ram available:
> ```
> free
>               total        used        free      shared  buff/cache   available
> Mem:        2001944      686428      122692        1560     1192824     1154636
> ```
> Let's do a 'core show sysinfo' :
> ```
>  core show sysinfo 
> System Statistics
> -----------------
>   System Uptime:             197 hours
>   Total RAM:                 2001944 KiB
>   Free RAM:                  121992 KiB
>   Buffer RAM:                107268 KiB
>   Total Swap Space:          0 KiB
>   Free Swap Space:           0 KiB
>   Number of Processes:       390 
> ```
> So it seems that asterisk is only relying on the "free" memory information, and it stops accepting new calls although the host have plenty of available ram.
> This issue seems similar to https://issues.asterisk.org/jira/browse/ASTERISK-28695 which has been fixed on 18.X branch if I'm correct.
> Regards



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list