Opened 15 years ago

Last modified 15 years ago

#45 new defect

tradindexed expiry speedups

Reported by: eagle Owned by: eagle
Priority: low Milestone:
Component: overview Version:
Severity: normal Keywords:
Cc:

Description (last modified by eagle)

After analysis of a syscall trace of expiration through tradindexed, the following would at least reduce the number of system calls:

  • group.index is being opened and closed between every single group expiration, which is really rather unnecessary (and mmap isn't the world's fastest system call, so it may well be noticably slower to do this).
  • Overview files that are empty shouldn't be expired in the first place; there's no point, and it would save a bunch of opens and renames.
  • Setting the file descriptors to close on exec looks pretty painful in a trace, although I'm not sure how much of a performance hit it really is. It's an additional two system calls for every open, though, and Solaris's system call interface, unlike Linux's, is pretty painful. Those are only in there for innd; we should be able to make this some sort of configuration flag, maybe another flag to pass into OVopen() like the existing modes.

Change History (1)

comment:1 Changed 15 years ago by eagle

Description: modified (diff)
Note: See TracTickets for help on using tickets.