cool-yacht-37128
01/17/2023, 3:34 AMpants run some.py
which has no relationship with any go code results in a lengthy Go module download. Am I doing something obviously wrong, or is this the expected behaviour?happy-kitchen-89482
01/17/2023, 12:32 PMhappy-kitchen-89482
01/17/2023, 12:33 PMwitty-crayon-22786
01/17/2023, 5:40 PMgo list
for many operationscool-yacht-37128
01/17/2023, 8:26 PM$GOPATH
witty-crayon-22786
01/17/2023, 8:48 PMcool-yacht-37128
01/17/2023, 9:07 PMwitty-crayon-22786
01/17/2023, 9:09 PMScheduling: $process
, during the cache lookup, but only for a few seconds at most. you shouldn’t see any processes actually running unless their inputs have changed.cool-yacht-37128
01/17/2023, 9:11 PMhappy-kitchen-89482
01/17/2023, 9:38 PMhappy-kitchen-89482
01/17/2023, 9:38 PMhappy-kitchen-89482
01/17/2023, 9:38 PMnarrow-vegetable-37489
02/28/2023, 1:42 PMpants lint path/to/python/file.py
multiple times after another still adds about 10s.
Running pants -ldebug lint path/to/python/file.py
with some timestamps:
# first log output
14:32:09.54 [DEBUG] acquiring lock: <pants.pantsd.lock.OwnerPrintingInterProcessFileLock object at 0x108769880>
# first reference to Go
14:32:15.39 [DEBUG] Running Searching for `go` on PATH=….
# last references to Go
14:32:25.90 [DEBUG] Completed: Download and analyze all third-party Go packages
14:32:26.01 [DEBUG] Completed: Generate `go_third_party_package` targets from `go_mod` target
# done
14:32:27.66 [DEBUG] Completed: `lint` goal
The same command without Go enabled takes 6s instead of 18s.happy-kitchen-89482
02/28/2023, 3:15 PMhappy-kitchen-89482
02/28/2023, 3:18 PMnarrow-vegetable-37489
02/28/2023, 3:29 PM[DEBUG] Launching pantsd
each time, and [DEBUG] pantsd is running at pid 49264, pailgun port is 64668
logs a different pid and port. So it seems so?narrow-vegetable-37489
02/28/2023, 8:44 PMpantsd_max_memory_usage
value. I bumped in to 2GiB and then again to 4GiB and now it seems to stay alive between executions. The previous command that took 18s now goes way faster:
real 0m0.746s
user 0m0.308s
sys 0m0.050s
cool-yacht-37128
02/28/2023, 11:53 PMpants_ignore.add = [“src/golang”,“tests/golang”,]
cool-yacht-37128
02/28/2023, 11:56 PMhappy-kitchen-89482
03/01/2023, 1:29 AMhappy-kitchen-89482
03/02/2023, 1:53 AMcool-yacht-37128
03/16/2023, 9:22 AMcool-yacht-37128
03/16/2023, 9:32 AMwitty-crayon-22786
03/16/2023, 4:36 PM--stats-memory-usage
for a relevant run? see https://github.com/pantsbuild/pants/pull/18389#issuecomment-1458610778cool-yacht-37128
03/21/2023, 12:43 AMcool-yacht-37128
03/21/2023, 2:03 AM.pants.d/pants.log
to capture more information that will assist in troubleshooting this memory consumption?
I’m looking through the pants.log of my own machine and seeing plenty of instances where even 12G is insufficient:
ERROR] The scheduler was invalidated: _Exception_(‘pantsd process 19704 was using 12291.17 MiB of memory (above thelimit of 12288.00 MiB).’)--pantsd-max-memory-usage
cool-yacht-37128
03/21/2023, 2:07 AM