lsyncd was killed because of 'Out of memory'

97 views
Skip to first unread message

Morty Smith

unread,
Apr 23, 2022, 7:34:01 AM4/23/22
to lsy...@googlegroups.com
Greetings,

When I copied a directory (with almost 2 million files in it) into source , lsyncd got stuck after backing up some of the files, and finally the process was killed because of 'Out of memory'.

I'm guessing the reason for the stuck is processing a large number of events at once. As observed from the log, the last execution backed up more than 900,000 files.

Is there a way to avoid lsyncd from executing too many events at once?


lsyncd 2.1.5 config :
------------------------------------------------------------
settings {
   logfile        = "/home/morty/Log/lsyncd.log",
   statusFile   = "/home/morty/Log/lsyncd.stat",
   nodaemon = true,
}

sync {
   default.rsync,
   source = " SOURCE_PATH",
   target   = " TARGET_PATH",
   rsync = {
      protect_args = false,
      links = false,
      _extra = {
         "--log-files=/home/morty/Log/rsync.log"
      },
   },
}
------------------------------------------------------------


kind regards, Morty
Reply all
Reply to author
Forward
0 new messages