What do the two numbers returned by Python's resource.RLIMIT_VMEM (or resource.RLIMIT_AS) mean?
问题 Python's resource module allows getting and setting various system resource usage information. In particular, the amount of memory used by a process is available via resource.RLIMIT_VMEM (or, on some systems, resource.RLIMIT_AS as per this StackOverflow answer). When I run the following Python code (using Python 3.7) to print the memory usage, I see a tuple with two values: import resource print(resource.getrlimit(resource.RLIMIT_AS)) On Ubuntu 18.04, it prints (-1, -1) (which I interpret to