Displaying 20 results from an estimated 34 matches for "jemalloc".
2017 Aug 12
4
Help to create bugzilla account
On 12 August 2017 at 15:10, luke-tierney at uiowa.edu wrote:
| As the Python posts poitns out, it is possible to use alternate malloc
| implementations, either rebuilding R to use them or using LD_PRELOAD.
| On Ubuntu for example, you can have R use jemalloc with
|
| sudo apt-get install libjemalloc1
| env LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1 R
|
| This does not seem to hold onto memory to the same degree, but I don't
| know about any other aspect of its performance.
Interesting.
I don't really know anything about malloc ve...
2010 Aug 09
3
[LLVMdev] MmapAllocator
...e a problem if libc
> > would use mmap() as the low-level allocator for malloc but it
> > doesn't. It uses sbrk() mostly for small (<128k) allocations, and
> > even with mmaps it caches them for a while.
>
> Recommended reading:
> http://people.freebsd.org/~jasone/jemalloc/bsdcan2006/jemalloc.pdf
If jemalloc provides same or better memory usage than
MMapAllocator, I think it'd be better to have a JEMallocAllocator
instead.
I think jemalloc is fairly portable (firefox uses it), isn't it?
>
> > I think that is because mmap() is slow in multithreaded...
2020 Apr 02
1
can libvirt.so use jemalloc to manage mem ?
HI, all
My daemon exists a libvirt API call:
virEventRegisterDefaultImpl();
once I called the virEventRegisterDefaultImpl() ,must be core ,the bt stack is:
(gdb) bt
#0 free (ptr=0x1) at include/jemalloc/internal/arena.h:652
#1 0x00007f57690a488a in virFree () from /lib64/libvirt.so.0
#2 0x00007f57690c3562 in virResetError () from /lib64/libvirt.so.0
#3 0x00007f57690c49ad in virEventRegisterDefaultImpl () from /lib64/libvirt.so.0
#4 0x00000000004029ad in main (argc=<optimized out>, argv=&...
2017 Aug 13
0
Help to create bugzilla account
Very interesting information about switching glibc malloc to jemalloc.
So I see action plan as following:
1. set up some benchmark (need to think about design)
2. Run it on ubuntu machine with default glibc malloc
3. Run it with malloc_trim passed with reg.finalizer()
4. Run it with jemalloc
5. Review results and if they will look better than with gl...
2010 Aug 09
0
[LLVMdev] MmapAllocator
...;> > would use mmap() as the low-level allocator for malloc but it
>> > doesn't. It uses sbrk() mostly for small (<128k) allocations, and
>> > even with mmaps it caches them for a while.
>>
>> Recommended reading:
>> http://people.freebsd.org/~jasone/jemalloc/bsdcan2006/jemalloc.pdf
>
> If jemalloc provides same or better memory usage than
> MMapAllocator, I think it'd be better to have a JEMallocAllocator
> instead.
> I think jemalloc is fairly portable (firefox uses it), isn't it?
Reading the abstract, jemalloc seems like it ha...
2017 Aug 14
0
Help to create bugzilla account
...EDT Dirk Eddelbuettel wrote:
> On 12 August 2017 at 15:10, luke-tierney at uiowa.edu wrote:
> | As the Python posts poitns out, it is possible to use alternate malloc
> | implementations, either rebuilding R to use them or using LD_PRELOAD.
> | On Ubuntu for example, you can have R use jemalloc with
> |
> | sudo apt-get install libjemalloc1
> | env LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1 R
> |
> | This does not seem to hold onto memory to the same degree, but I don't
> | know about any other aspect of its performance.
>
> Interesting.
>
>...
2010 Aug 09
0
[LLVMdev] MmapAllocator
...allocated. That wouldn't be a problem if libc would
> use mmap() as the low-level allocator for malloc but it doesn't.
> It uses sbrk() mostly for small (<128k) allocations, and even with
> mmaps it caches them for a while.
Recommended reading: http://people.freebsd.org/~jasone/jemalloc/bsdcan2006/jemalloc.pdf
> I think that is because mmap() is slow in multithreaded apps, since it
> needs to take a process level lock, which also contends with the lock
> taken by pagefaults from other existing mmaps (in fact that lock is held
> during disk I/O!).
Sounds awesome, let&...
2016 May 29
0
problems with objects larger than PTRDIFF_MAX
...; - glibc's malloc is happy to allocate more than PTRDIFF_MAX bytes (and
> this is important in practice so (at least some) glibc devs are reluctant
> to "fix" it);
>
glibc is not the only game in town.
Android prevents it: https://android-review.googlesource.com/#/c/170800/
jemalloc prevents it:
https://github.com/jemalloc/jemalloc/commit/0c516a00c4cb28cff55ce0995f756b5aae074c9e
There are other implementations of malloc which also act similarly.
> - clang has a compile-time limit for sizes of objects and types which is
> SIZE_MAX. For example, it compiles "char a...
2010 Aug 09
2
[LLVMdev] MmapAllocator
On Mon, 9 Aug 2010 09:36:53 -0700
Jakob Stoklund Olesen <stoklund at 2pi.dk> wrote:
>
> On Aug 8, 2010, at 9:20 PM, Reid Kleckner wrote:
>
> > I thought I dug into the register allocation code, and found the
> > VNInfo::Allocator typedef. I assumed that was getting the traffic
> > we saw in Instruments, but I don't have the data to back that up.
>
>
2016 May 29
2
problems with objects larger than PTRDIFF_MAX
On 2016-05-20 19:58, David Majnemer via llvm-dev wrote:
> I've come across this issue before and came to the following conclusion:
> - We are not obligated to support objects that large, C11 5.2.4.1/1 only
> requires that we support objects of size 65535!
Right, the standard doesn't require it. But I guess you don't imply that
it's fine for clang to silently miscompile
2017 Aug 12
3
Help to create bugzilla account
Strange because in my all my experiments calling malloc.trim always helped
- memory reported by top decreased to the level it supposed to be. Do you
have in mind case when calling malloc.trim won't do anything? Also
shouldn't MALLOC_TRIM_THRESHOLD_ env variable has impact on malloc.trim
calls? At the moment seems any value is ignored...
12 ???. 2017 ?. 6:09 ?? ???????????? "Simon
2019 Oct 18
3
[RFC] Propeller: A frame work for Post Link Optimizations
Hello Maksim,
On Fri, Oct 18, 2019 at 10:57 AM Maksim Panchenko <maks at fb.com> wrote:
> Cool. The new numbers look good. If you run BOLT with jemalloc library
>
> preloaded, you will likely get a runtime closer to 1 minute. We’ve noticed
> that
>
> compared to the default malloc, it improves the multithreaded
>
> performance and brings down memory usage significantly.
>
Great, thanks for confirming! Would you be willing...
2017 Oct 30
4
Maria 10 breaks unixodbc mysql connector
...w.so | grep -iE
"my|maria"
libmysqlclient.so.18 => /usr/lib64/mysql/libmysqlclient.so.18
(0x00007f3dfb34c000)
You have new mail in /var/spool/mail/root
[root at ec-ast yum.repos.d]# repoquery -l MariaDB-server MariaDB-client
MariaDB-commo MariaDB-shared galera boost-program-options jemalloc rsync
lsof | grep lib64 | grep libmysqlclient
/usr/lib64/libmysqlclient.so
/usr/lib64/libmysqlclient.so.18
/usr/lib64/libmysqlclient.so.18.0.0
/usr/lib64/libmysqlclient_r.so
/usr/lib64/libmysqlclient_r.so.18
/usr/lib64/libmysqlclient_r.so.18.0.0
...notice the change in the path (/usr/lib64/mysql/)...
2016 May 23
3
A "Cross-Platform Runtime Library API" in LLVM IR
...a here
> return r;
> }
You have still completely failed to explain why __alloc() is better than malloc(). If you wish to implement a language-specific allocator like this, then why would it want to call __alloc() from your hypothetical library instead of malloc(), provided by something like jemalloc(), which has over a decade of careful optimisation behind it to ensure that it scales well on multithreaded systems?
> This function will be included in the runtime library. Obviously this is a stupid example maybe a better implementation can be done.
Again, why would I, as the author of a hig...
2019 Oct 22
2
[RFC] Propeller: A frame work for Post Link Optimizations
...imple reason: no one asked for it previously. And as we like to say
> in
>
> the open-source community: "patches are welcome."
>
>
>
> Maksim
>
>
>
> P.S. We have updated https://github.com/facebookincubator/BOLT with
> instructions on running BOLT with jemalloc or tcmalloc.
>
>
>
> On 10/18/19, 11:21 AM, "Sriraman Tallam" <tmsriram at google.com> wrote:
>
>
>
> Hello Maksim,
>
>
>
> On Fri, Oct 18, 2019 at 10:57 AM Maksim Panchenko <maks at fb.com> wrote:
>
> Cool. The new numbers look good....
2016 May 23
0
A "Cross-Platform Runtime Library API" in LLVM IR
...turn r;
>> }
>
> You have still completely failed to explain why __alloc() is better than malloc(). If you wish to implement a language-specific allocator like this, then why would it want to call __alloc() from your hypothetical library instead of malloc(), provided by something like jemalloc(), which has over a decade of careful optimisation behind it to ensure that it scales well on multithreaded systems?
>
>> This function will be included in the runtime library. Obviously this is a stupid example maybe a better implementation can be done.
>
> Again, why would I, as...
2016 Dec 07
3
[PATCH kernel v5 0/5] Extend virtio-balloon for fast (de)inflating & fast live migration
Removing silly virtio-dev@ list because it's bouncing mail...
On 12/07/2016 08:21 AM, David Hildenbrand wrote:
>> Li's current patches do that. Well, maybe not pfn/length, but they do
>> take a pfn and page-order, which fits perfectly with the kernel's
>> concept of high-order pages.
>
> So we can send length in powers of two. Still, I don't see any
2016 Dec 07
3
[PATCH kernel v5 0/5] Extend virtio-balloon for fast (de)inflating & fast live migration
Removing silly virtio-dev@ list because it's bouncing mail...
On 12/07/2016 08:21 AM, David Hildenbrand wrote:
>> Li's current patches do that. Well, maybe not pfn/length, but they do
>> take a pfn and page-order, which fits perfectly with the kernel's
>> concept of high-order pages.
>
> So we can send length in powers of two. Still, I don't see any
2017 Oct 31
0
Maria 10 breaks unixodbc mysql connector
...lib64/libmyodbc5w.so | grep -iE
> "my|maria"
> libmysqlclient.so.18 => /usr/lib64/mysql/libmysqlclient.so.18
> (0x00007f3dfb34c000)
> [root at ec-ast yum.repos.d]# repoquery -l MariaDB-server MariaDB-client
> MariaDB-commo MariaDB-shared galera boost-program-options jemalloc rsync
> lsof | grep lib64 | grep libmysqlclient
> /usr/lib64/libmysqlclient.so.18
If the MariaDB packages provide the library in /usr/lib64, what provides
the lib in /usr/lib64/mysql?? (It looks like you have a library conflict)
rpm -qf /usr/lib64/mysql/*
More than likely, you can resolve...
2019 Oct 17
2
[RFC] Propeller: A frame work for Post Link Optimizations
Hello Maksim,
On Wed, Oct 16, 2019 at 3:52 PM Maksim Panchenko <maks at fb.com> wrote:
> Hi Sri,
>
>
>
> I want to clarify one thing before sending a detailed reply: did you
> evaluate
>
> BOLT on Clang built with basic block sections?
>
In the makefile you reference,
>
> there are two versions: a “vanilla” and a default built with function
> sections.