Bug 1295892
Summary: | rhel6+ ksh regression due to default to mmap for internal malloc | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Paulo Andrade <pandrade> | ||||
Component: | ksh | Assignee: | Siteshwar Vashisht <svashisht> | ||||
Status: | CLOSED CANTFIX | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 6.7 | CC: | baitken, svashisht, washer, zpytela | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1460944 (view as bug list) | Environment: | |||||
Last Closed: | 2017-06-13 08:39:39 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1269194, 1460944 | ||||||
Attachments: |
|
Created attachment 1111915 [details] kshscript The example script, when run as: $ ./kshscript driver will run around 5 times slower in rhel6+ when compared to rhel5 version of ksh. A possible workaround is to run as: VMALLOC_OPTIONS=break ./kshscript driver to have the same behavior as rhel5 ksh. Another solution is to use system malloc, e.g. have -D_AST_std_malloc=1 in CFLAGS, what will cause it to make very few mmap calls and run fast as well (but make VMALLOC_OPTIONS a noop).