This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Memory consumption of iconv
- From: Dirk Bächle <tshortik at gmx dot de>
- To: libc-help at sourceware dot org
- Date: Fri, 21 Mar 2014 22:17:36 +0100
- Subject: Re: Memory consumption of iconv
- Authentication-results: sourceware.org; auth=none
- References: <2766265 dot zxRTdxtCPy at gentoo> <532C6154 dot 4050404 at gmx dot de> <CAE2sS1j6cY=dAyPVyZcQUQT9u4yB=oybTvoOAft_dObUp+hr8A at mail dot gmail dot com>
- Reply-to: dl9obn at darc dot de
Hi Carlos,
thanks a lot for your valid suggestions.
On 21.03.2014 19:00, Carlos O'Donell wrote:
[...]
Use vfork() if possible? You can't get away from copying the entire address
space unless you are doing a very restricted set of operations after the
*fork(). Alternatively use system() and expect that the implementation does
a good job.
Both may be helpful for getting around the memory-copy problem, but
1.) we actually need a solution that works in Python, and
2.) to our users we offer the possibility to setup different "shell
environments" (regarding the defined variables, like PATH/CCFLAGS/...)
for each build command, so we have to be able to pass an "env"
dictionary to the child process.
So we're somewhat stuck, I guess. ;)
Best regards,
Dirk