Bug 1295892 - rhel6+ ksh regression due to default to mmap for internal malloc
Summary: rhel6+ ksh regression due to default to mmap for internal malloc
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ksh
Version: 6.7
Hardware: All
OS: All
medium
medium
Target Milestone: rc
: ---
Assignee: Siteshwar Vashisht
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks: 1269194 1460944
TreeView+ depends on / blocked
 
Reported: 2016-01-05 17:29 UTC by Paulo Andrade
Modified: 2019-11-14 07:17 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1460944 (view as bug list)
Environment:
Last Closed: 2017-06-13 08:39:39 UTC
Target Upstream Version:


Attachments (Terms of Use)
kshscript (1.41 KB, text/plain)
2016-01-05 17:29 UTC, Paulo Andrade
no flags Details

Description Paulo Andrade 2016-01-05 17:29:44 UTC
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).


Note You need to log in before you can comment on or make changes to this bug.