[lxc-devel] [lxc/lxc] 2291ea: parse: prefault config file with MAP_POPULATE

GitHub noreply at github.com
Tue Oct 2 15:28:32 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 2291ea4a1a40f67d76a108e96cee83cb65038f9a
      https://github.com/lxc/lxc/commit/2291ea4a1a40f67d76a108e96cee83cb65038f9a
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2018-10-02 (Tue, 02 Oct 2018)

  Changed paths:
    M src/lxc/parse.c

  Log Message:
  -----------
  parse: prefault config file with MAP_POPULATE

When we call lxc_file_for_each_line_mmap() we will always parse the
whole config file. Prefault it in case it is really long to optimize
performance.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 7040a77e8fb7a9f4311433d30b8dcc2028acf694
      https://github.com/lxc/lxc/commit/7040a77e8fb7a9f4311433d30b8dcc2028acf694
  Author: Stéphane Graber <stgraber at stgraber.org>
  Date:   2018-10-02 (Tue, 02 Oct 2018)

  Changed paths:
    M src/lxc/parse.c

  Log Message:
  -----------
  Merge pull request #2667 from brauner/2018-10-02/prefault_mmaped_config_file

parse: prefault config file with MAP_POPULATE


Compare: https://github.com/lxc/lxc/compare/907e1332012e...7040a77e8fb7
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the lxc-devel mailing list