Libcofi replaced by arm-mem (can boost your system speed)

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Libcofi replaced by arm-mem (can boost your system speed)

Postby Huulivoide » Thu Jun 06, 2013 8:05 pm

For those who don't know the libcofi was a small library that had hand optimized
assembly version of 2 libc functions that could speed applications using those
functions a lot, when set to be preloaded.

Libcofi has now been superseded by arm-mem, it provided more hand optimized
functions and is also faster. This is included in raspbian by default, so make sure
to install this, it would be shame to have slower performance on Arch compared to
Debian...

https://github.com/bavison/arm-mem

AUR: https://aur.archlinux.org/packages/arm-mem-git/

Install it and reboot. All applications using lots of memX functions should see a nice
increase in performance.
Huulivoide
 
Posts: 27
Joined: Tue Jun 26, 2012 6:22 pm

Re: Libcofi replaced by arm-mem (can boost your system speed

Postby crashmaster » Fri Jun 07, 2013 2:50 am

Thanks for the hint!
crashmaster
 
Posts: 119
Joined: Wed Mar 13, 2013 1:00 am

Re: Libcofi replaced by arm-mem (can boost your system speed

Postby pepedog » Fri Jun 07, 2013 10:51 pm

Huulivoide,
Want to submit a pull
https://github.com/archlinuxarm/PKGBUILDs
Look at notes at bottom of that page
Is there any subjective comparisons about?
Thanks
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Libcofi replaced by arm-mem (can boost your system speed

Postby rubenvb » Sat Jun 08, 2013 6:47 pm

Why are these not being merged into (e)glibc? It seems the proper place for these things.
rubenvb
 
Posts: 8
Joined: Fri Feb 01, 2013 9:14 pm

Re: Libcofi replaced by arm-mem (can boost your system speed

Postby Huulivoide » Mon Jun 10, 2013 7:24 am

I have tried to come up with some realworld benchmarks, but I haven't been able to find any.
There is a test program included in the arm-mem library source. Basically it just calls memcpy()
over and over again, measuring the time it takes to complete each call. With it one can see
a real difference between having libarmmem.so preloaded and not.
Huulivoide
 
Posts: 27
Joined: Tue Jun 26, 2012 6:22 pm

Re: Libcofi replaced by arm-mem (can boost your system speed

Postby CrawX » Wed Jun 12, 2013 7:33 am

For me, using libcofi has made a noticeable and reproduceable difference in playing back h264 videos.
I haven't looked at the code itself (and in probably don't know asm well enough to judge) but im pretty sure that tne replacement does have at least the effect of libcofi.

Greets,
CruX
CrawX
 
Posts: 13
Joined: Wed Jun 12, 2013 7:16 am

Re: Libcofi replaced by arm-mem (can boost your system speed

Postby moonman » Wed Jun 12, 2013 9:32 am

I can see the library gets preloaded only if a user logs in. What if a service is running under a user that doesn't have any shell? It's probably better if you setup ld.so.preoload ?
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Libcofi replaced by arm-mem (can boost your system speed

Postby Huulivoide » Wed Jun 12, 2013 3:25 pm

$this->bbcode_second_pass_quote('moonman', 'I') can see the library gets preloaded only if a user logs in. What if a service is running under a user that doesn't have any shell? It's probably better if you setup ld.so.preoload ?


The package should be coming into the binary repos soon. It now uses ld.so.preload,
instead of preofile.d script
Huulivoide
 
Posts: 27
Joined: Tue Jun 26, 2012 6:22 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 3 guests