Jim Jewett wrote: > IMHO, I would prefer that it limit disk consumption; a deleted or > overwritten file would not count against the process, but even a > temporary spike would need to be less than the cap.
The problem is that there's no easy way to reliably measure disk consumption by a particular process, particularly on Unix. For example, os.unlink() doesn't necessarily free the space used by a file -- there could be other links to it, or the same or another process may hold another file descriptor referencing it. Another problem is that Unix files can have "holes" in them, e.g. if you create a file, seek to position 1000000, and write a byte, you're not using a megabyte of disk. Accounting for all these possibilities reliably would be very complicated, and maybe even impossible to get exactly right. -- Greg _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com