On Mon, Oct 19, 2015 at 03:13:04PM -0600, Mike Brown wrote:
> On Mon, Oct 19, 2015 at 10:19:00AM -0600, Mike Brown wrote:
> > However, it consumes all available memory for over 20 minutes if I add this:
> > table aliases file:/usr/local/etc/mail/aliases
> 
> I learned about truss(1), so gave it a try, and hit ctrl-C when it got into 
> the memory allocation hole:
> 
> open("/usr/local/etc/mail/aliases",O_RDONLY,0666) = 5 (0x5)
> fstat(5,{ mode=-rw-r--r-- ,inode=753053,size=11,blksize=32768 }) = 0 (0x0)
> read(5,"root: mike\n",32768)                     = 11 (0xb)
> read(5,0x20c91000,32768)                         = 0 (0x0)
> mmap(0x0,4194304,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,4194304,0x400000) 
> = 553648128 (0x21000000)
> madvise(0x20c99000,0x201000,0x5,0xfffff000,0x20c00000,0x0) = 0 (0x0)
> madvise(0x20c2e000,0x1000,0x5,0xfffff000,0x20c00000,0x0) = 0 (0x0)
> madvise(0x20c63000,0x1000,0x5,0x20c00204,0x20c00000,0x0) = 0 (0x0)
> mmap(0x0,8388608,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,4194304,0x800000) 
> = 557842432 (0x21400000)
> munmap(0x21000000,4194304)                       = 0 (0x0)
> mmap(0x0,16777216,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,4194304,0x1000000)
>  = 566231040 (0x21c00000)
> munmap(0x21400000,8388608)                       = 0 (0x0)
> mmap(0x0,33554432,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,4194304,0x2000000)
>  = 583008256 (0x22c00000)
> munmap(0x21c00000,16777216)                      = 0 (0x0)
> mmap(0x0,67108864,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,4194304,0x4000000)
>  = 616562688 (0x24c00000)
> ^CSIGNAL 2 (SIGINT)
> 
> For this test, the aliases file has just one line, the "root: mike" + newline 
> as you see in the truss output.
> 
> Not sure if this tells you anything or not.
> 

This should definitely be added to the ticket.

I don't have an immediate solution for you, I need to have a deeper look
at this, but could you try using the db: backend and let me know if this
also happens ?


-- 
Gilles Chehade

https://www.poolp.org                                          @poolpOrg

-- 
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to