good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
ec28a58c
Unverified
Commit
ec28a58c
authored
Feb 2, 2018
by
Martin Holst Swende
Browse files
Options
Downloads
Patches
Plain Diff
utils: fix #16006 by not lowering OS ulimit
parent
4dedde7b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmd/utils/flags.go
+5
-3
5 additions, 3 deletions
cmd/utils/flags.go
with
5 additions
and
3 deletions
cmd/utils/flags.go
+
5
−
3
View file @
ec28a58c
...
@@ -714,13 +714,15 @@ func setIPC(ctx *cli.Context, cfg *node.Config) {
...
@@ -714,13 +714,15 @@ func setIPC(ctx *cli.Context, cfg *node.Config) {
// makeDatabaseHandles raises out the number of allowed file handles per process
// makeDatabaseHandles raises out the number of allowed file handles per process
// for Geth and returns half of the allowance to assign to the database.
// for Geth and returns half of the allowance to assign to the database.
func
makeDatabaseHandles
()
int
{
func
makeDatabaseHandles
()
int
{
if
err
:=
fdlimit
.
Raise
(
2048
);
err
!=
nil
{
Fatalf
(
"Failed to raise file descriptor allowance: %v"
,
err
)
}
limit
,
err
:=
fdlimit
.
Current
()
limit
,
err
:=
fdlimit
.
Current
()
if
err
!=
nil
{
if
err
!=
nil
{
Fatalf
(
"Failed to retrieve file descriptor allowance: %v"
,
err
)
Fatalf
(
"Failed to retrieve file descriptor allowance: %v"
,
err
)
}
}
if
limit
<
2048
{
if
err
:=
fdlimit
.
Raise
(
2048
);
err
!=
nil
{
Fatalf
(
"Failed to raise file descriptor allowance: %v"
,
err
)
}
}
if
limit
>
2048
{
// cap database file descriptors even if more is available
if
limit
>
2048
{
// cap database file descriptors even if more is available
limit
=
2048
limit
=
2048
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment