mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
perf: try to reduce memory usage by decreasing default core workers to 2.
This commit is contained in:
parent
978579af10
commit
c5aa570482
|
|
@ -102,7 +102,7 @@ class BaseActionCommand(BaseCommand):
|
|||
)
|
||||
parser.add_argument('-d', '--daemon', nargs="?", const=True)
|
||||
parser.add_argument('-w', '--worker', type=int, nargs="?",
|
||||
default=3 if os.cpu_count() > 6 else math.floor(os.cpu_count() / 2))
|
||||
default=2 if os.cpu_count() > 6 else math.floor(os.cpu_count() / 2))
|
||||
parser.add_argument('-f', '--force', nargs="?", const=True)
|
||||
|
||||
def initial_util(self, *args, **options):
|
||||
|
|
|
|||
Loading…
Reference in New Issue