[New-bugs-announce] [issue37096] Add large-file tests for modules using sendfile(2)

Giampaolo Rodola' report at bugs.python.org
Thu May 30 03:18:19 EDT 2019


New submission from Giampaolo Rodola' <g.rodola at gmail.com>:

The need for this emerged in:
https://bugs.python.org/issue36610#msg343948.
We currently use sendfile(2) syscall in high-level shutil.copyfile() on Linux and socket.sendfile() on UNIX. In addition this PR also tests shutil.copyfile() implementation on OSX which takes advantage of fcopyfile(2) syscall. The goal is to make sure "fast-copy" syscalls can handle files > 2G. On my Ubuntu 18.04 with SSD disk this introduces a 5 secs slowdown to the test run.

According to:
https://github.com/golang/go/issues/13892
...problems may arise on SunOS, so if a BB will turn red this is expected.

----------
components: Library (Lib)
messages: 343951
nosy: giampaolo.rodola, rosslagerwall
priority: normal
severity: normal
status: open
title: Add large-file tests for modules using sendfile(2)
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37096>
_______________________________________


More information about the New-bugs-announce mailing list