Bug #80061 [NEW]: Copying large files may have suboptimal performance

From: Date: Fri, 04 Sep 2020 16:29:42 +0000
Subject: Bug #80061 [NEW]: Copying large files may have suboptimal performance
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228889@lists.php.net to get a copy of this message
From: cmb Operating system: * PHP version: 7.4Git-2020-09-04 (Git) Package: Performance problem Bug Type: Bug Bug description:Copying large files may have suboptimal performance Description: ------------ As of PHP 7.4.0, large files are supposed to be copied by mapping them into virtual memory at once. That obviously can't work for files which are larger than any possibly free memory segment. So copying files of 1 GiB or 2 GiB is not unlikely to fail for x86 architectures, for instance. If the memory mapping fails, we fall back to reading and writing in small chunks, which has suboptimal performance. See also <https://github.com/php/php-src/pull/5319#issuecomment-605901029>. -- Edit bug report at https://bugs.php.net/bug.php?id=80061&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80061&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80061&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80061&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80061&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80061&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80061&r=support Expected behavior: https://bugs.php.net/fix.php?id=80061&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80061&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80061&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80061&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80061&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80061&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80061&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80061&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80061&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80061&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80061&r=mysqlcfg

« previous php.bugs (#228889) next »