Bug 224146

Summary: Please increase kern.maxfiles on the package building servers
Product: Services Reporter: Yuri Victorovich <yuri>
Component: Core InfrastructureAssignee: Port Management Team <portmgr>
Status: Closed FIXED    
Severity: Affects Only Me CC: bdrewery, peter
Priority: ---    
Version: unspecified   
Hardware: Any   
OS: Any   

Description Yuri Victorovich freebsd_committer freebsd_triage 2017-12-06 17:51:29 UTC
Please have such or similar line in /boot/loader.conf:
> kern.maxfiles="25000"
Or, increase it even higher.

Servers: http://beefy9.nyi.freebsd.org. http://package21.nyi.freebsd.org, etc.

The package devel/RStudio routinely fails in build because it has too many files open at the same time. Please see this sample log: http://package21.nyi.freebsd.org/data/111amd64-default-qat/455493/logs/errors/RStudio-1.1.385.log
Comment 1 Peter Wemm freebsd_committer freebsd_triage 2017-12-06 19:48:13 UTC
This is a portmgr thing - they adjust those parts of the configuration on the package builders.
Comment 2 Bryan Drewery freebsd_committer freebsd_triage 2017-12-06 21:21:44 UTC
Poudriere also limits to 1024 max files per process.
Comment 3 Antoine Brodin freebsd_committer freebsd_triage 2017-12-06 21:22:57 UTC
The 1024 limits is set by poudriere, not on servers and it's for performance reasons.
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2017-12-07 01:18:40 UTC
(In reply to Antoine Brodin from comment #3)

It doesn't fail for me in poudriere though.
Comment 5 Yuri Victorovich freebsd_committer freebsd_triage 2017-12-10 01:01:57 UTC
Antoine, you are right, on my system MAX_FILES=15000 in poudriere.conf. This is what probably really limited the file number.

Could you please adjust this one to some higher value to see if this corrects the problem with RStudio?
Comment 6 Antoine Brodin freebsd_committer freebsd_triage 2017-12-18 22:05:20 UTC
Are you sure that there is no file descriptor leak in RStudio?
Comment 7 Yuri Victorovich freebsd_committer freebsd_triage 2017-12-18 22:08:10 UTC
(In reply to Antoine Brodin from comment #6)

They use external binaries for build, like java toolkit, etc.
There might be a leak, but this doesn't appear likely. It's just a large project, something opens too many files.
Comment 8 Yuri Victorovich freebsd_committer freebsd_triage 2018-01-02 11:09:50 UTC
(In reply to Antoine Brodin from comment #6)

@antoine, did you have a chance to try increase MAX_FILES?
Comment 9 Yuri Victorovich freebsd_committer freebsd_triage 2018-03-31 05:00:07 UTC
This problem has occurred in the RStudio port and has been resolved with a special feature in poudriere that increases the number of open files for a specific port.