projects
/
tools
/
depanneur.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d06e6f
)
Reduce nprocessors. This option is assigning excessive cpu core. In server case,...
46/40546/1
author
Gyeoungmin Kim
<g5.kim@samsung.com>
Fri, 5 Jun 2015 05:02:05 +0000
(14:02 +0900)
committer
Gyeoungmin Kim
<g5.kim@samsung.com>
Fri, 5 Jun 2015 05:02:05 +0000
(14:02 +0900)
Change-Id: I36c48cd1e3817645594c2a447a72abbbd9aadcf0
depanneur
patch
|
blob
|
history
diff --git
a/depanneur
b/depanneur
index 244998a6686def8a4442675b07c193ef32c7fc87..9b8bfbecc4e88b27ef5f2ffcc49446c6210d4213 100755
(executable)
--- a/
depanneur
+++ b/
depanneur
@@
-1605,7
+1605,10
@@
sub build_package {
push @args, "--uid $zuid:$zgid";
my $nprocessors = 2;
if ($^O eq "linux") {
- $nprocessors = int(sysconf(SC_NPROCESSORS_ONLN));
+ $nprocessors = int(int(sysconf(SC_NPROCESSORS_ONLN))/int($MAX_THREADS));
+ if ($nprocessors < 1) {
+ $nprocessors = 1;
+ }
} else {
warning("depanneur only support linux platform");
}