mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 07:29:23 +00:00
Increase some quotas
- Double mem quota (fixes #296) because linking Python is expensive and not easily tuned on a case-by-case basis - Increase latency greatly for mkdeps tool since it's the first thing that runs and effetively manages to load 17,000 files into the hard disk cache (see #97)
This commit is contained in:
parent
245a9c206b
commit
7064d736e3
3 changed files with 3 additions and 3 deletions
2
Makefile
2
Makefile
|
@ -224,7 +224,7 @@ o/$(MODE)/hdrs.txt: o/$(MODE)/.x $(MAKEFILES) $(call uniq,$(foreach x,$(HDRS) $(
|
||||||
o/$(MODE)/incs.txt: o/$(MODE)/.x $(MAKEFILES) $(call uniq,$(foreach x,$(INCS) $(INCS),$(dir $(x))))
|
o/$(MODE)/incs.txt: o/$(MODE)/.x $(MAKEFILES) $(call uniq,$(foreach x,$(INCS) $(INCS),$(dir $(x))))
|
||||||
$(file >$@,$(INCS))
|
$(file >$@,$(INCS))
|
||||||
o/$(MODE)/depend: o/$(MODE)/.x o/$(MODE)/srcs.txt o/$(MODE)/hdrs.txt o/$(MODE)/incs.txt $(SRCS) $(HDRS) $(INCS)
|
o/$(MODE)/depend: o/$(MODE)/.x o/$(MODE)/srcs.txt o/$(MODE)/hdrs.txt o/$(MODE)/incs.txt $(SRCS) $(HDRS) $(INCS)
|
||||||
@$(COMPILE) -AMKDEPS $(MKDEPS) -o $@ -r o/$(MODE)/ @o/$(MODE)/srcs.txt @o/$(MODE)/hdrs.txt @o/$(MODE)/incs.txt
|
@$(COMPILE) -AMKDEPS -L320 $(MKDEPS) -o $@ -r o/$(MODE)/ @o/$(MODE)/srcs.txt @o/$(MODE)/hdrs.txt @o/$(MODE)/incs.txt
|
||||||
|
|
||||||
o/$(MODE)/srcs-old.txt: o/$(MODE)/.x $(MAKEFILES) $(call uniq,$(foreach x,$(SRCS),$(dir $(x))))
|
o/$(MODE)/srcs-old.txt: o/$(MODE)/.x $(MAKEFILES) $(call uniq,$(foreach x,$(SRCS),$(dir $(x))))
|
||||||
$(file >$@) $(foreach x,$(SRCS),$(file >>$@,$(x)))
|
$(file >$@) $(foreach x,$(SRCS),$(file >>$@,$(x)))
|
||||||
|
|
Binary file not shown.
|
@ -97,7 +97,7 @@ FLAGS\n\
|
||||||
-V NUMBER specifies compiler version\n\
|
-V NUMBER specifies compiler version\n\
|
||||||
-C SECS set cpu limit [default 8]\n\
|
-C SECS set cpu limit [default 8]\n\
|
||||||
-L SECS set lat limit [default 64]\n\
|
-L SECS set lat limit [default 64]\n\
|
||||||
-M BYTES set mem limit [default 256m]\n\
|
-M BYTES set mem limit [default 512m]\n\
|
||||||
-F BYTES set fsz limit [default 100m]\n\
|
-F BYTES set fsz limit [default 100m]\n\
|
||||||
-O BYTES set out limit [default 1m]\n\
|
-O BYTES set out limit [default 1m]\n\
|
||||||
-s decrement verbosity [default 4]\n\
|
-s decrement verbosity [default 4]\n\
|
||||||
|
@ -625,7 +625,7 @@ int main(int argc, char *argv[]) {
|
||||||
timeout = 64; /* secs */
|
timeout = 64; /* secs */
|
||||||
cpuquota = 8; /* secs */
|
cpuquota = 8; /* secs */
|
||||||
fszquota = 100 * 1000 * 1000; /* bytes */
|
fszquota = 100 * 1000 * 1000; /* bytes */
|
||||||
memquota = 256 * 1024 * 1024; /* bytes */
|
memquota = 512 * 1024 * 1024; /* bytes */
|
||||||
if ((s = getenv("V"))) verbose = atoi(s);
|
if ((s = getenv("V"))) verbose = atoi(s);
|
||||||
while ((opt = getopt(argc, argv, "hnvstC:M:F:A:T:V:O:L:")) != -1) {
|
while ((opt = getopt(argc, argv, "hnvstC:M:F:A:T:V:O:L:")) != -1) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue