Subject: bin/15179: make(1) no longer uses its file caches effectively
To: None <>
From: Paul Kranenburg <>
List: netbsd-bugs
Date: 01/08/2002 14:29:12
>Number:         15179
>Category:       bin
>Synopsis:       make(1) no longer uses its file caches effectively
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 08 05:31:00 PST 2002
>Originator:     Paul Kranenburg
>Release:        NetBSD-current, Jan 2002
	make(1) caches the contents of the object and include directories
	so it can check efficiently for the existence of the files it is
	looking for when checking dependencies or including other makefiles.
	These caches are no longer used effectively resulting in a tremendous
	increase in the number of stat(2) system calls. This causes a
	noticeable slowdown especially when a large number of source and
	object files are involved such as in a kernel build directory.
	Look at the ouput of `ktrace make' on some kernel build directory.
	Note the number of stat(2) calls resulting from suffix rule processing,
	which amount to 15 for every object file.
	none provided.
	Yet I note that this problem appeared with revision 1.27
	of src/usr.bin/make/dir.c (see also PR15178).