Re: Add #22337

2003-05-31 Thread Leopold Toetsch
Andy Switala <[EMAIL PROTECTED]> wrote: > I found this online: http://unixhelp.ed.ac.uk/CGI/man-cgi?posix_memalign. Thanks to you and Steve for the docs. I've now a test and platform code for both flavors of memalign. I'll send it later. leo

Re: Add #22337

2003-05-30 Thread Steve Fink
[EMAIL PROTECTED]:~/parrot/languages/perl6% man memalign POSIX_MEMALIGN(3) Linux Programmer's ManualPOSIX_MEMALIGN(3) NAME posix_memalign, memalign, valloc - Allocate aligned memory SYNOPSIS #include int posix_memalign(void **memptr, size_t alignment, size_t size);

Re: Add #22337

2003-05-30 Thread Leopold Toetsch
Dan Sugalski wrote: [ zerofilled aligned memory ] That, as much as anything, argues for an entry in platform.c to get and return large sections of memory. I know it's reasonably doable on a lot of platforms, just potentially differently everywhere. BTW the zero filled memory is not that impor

RE: Add #22337

2003-05-29 Thread Andy Switala
n't check myself.) --Andy -Original Message- From: Dan Sugalski [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 08:16 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Add #22337 At 11:00 PM +0200 5/27/03, Leopold Toetsch wrote: >Dan Sugalski <[EMAIL PROTECTED]&

Re: Add #22337

2003-05-29 Thread Dan Sugalski
At 11:00 PM +0200 5/27/03, Leopold Toetsch wrote: Dan Sugalski <[EMAIL PROTECTED]> wrote: At 8:03 PM +0200 5/27/03, Leopold Toetsch wrote: ... . We need some tests, from which size memory is cleard for malloc and memalign. I tossed the memset for now and saved ~450.000 L2-misses or ~0.2 s. Whi

Re: Add #22337

2003-05-29 Thread Dan Sugalski
At 5:43 PM +0200 5/28/03, Leopold Toetsch wrote: Leopold Toetsch <[EMAIL PROTECTED]> wrote: ... . We need some tests, from which size memory is cleard for malloc and memalign. Here is a small program, which could be put into a test. Are there systems out there, without memalign, where malloc.c ca

[PATCH] SPMC and DOD flags (was: Add #22337)

2003-05-29 Thread Leopold Toetsch
Appended is a refined version of #22337 which it obsoletes. Key features are: 1) DOD flags (live, on_free_list, ...) are kept in the arenas, 1 nibble per object 2) arena memory is aquired per memalign() to be able to calculate arena from object address 3) free_list is per arena now 4) PMC size i

Re: Add #22337

2003-05-29 Thread Leopold Toetsch
Leopold Toetsch <[EMAIL PROTECTED]> wrote: >>>... . We need some tests, from which size memory is >>>cleard for malloc and memalign. Here is a small program, which could be put into a test. Are there systems out there, without memalign, where malloc.c can not be linked with? /* * test clean me

Re: Add #22337

2003-05-27 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 8:03 PM +0200 5/27/03, Leopold Toetsch wrote: >>... . We need some tests, from which size memory is >>cleard for malloc and memalign. >>I tossed the memset for now and saved ~450.000 L2-misses or ~0.2 s. > While I didn't see any memsets in smallobject

Re: Add #22337

2003-05-27 Thread Dan Sugalski
At 3:10 PM -0400 5/27/03, Uri Guttman wrote: > "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: >> obviously gets called for memalign - at least for this arena size) >> does clear the memory. We need some tests, from which size memory is >> cleard for malloc and memalign. >> I tossed

Re: Add #22337

2003-05-27 Thread Uri Guttman
> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: >> obviously gets called for memalign - at least for this arena size) >> does clear the memory. We need some tests, from which size memory is >> cleard for malloc and memalign. >> I tossed the memset for now and saved ~450.000 L2-miss

Re: Add #22337

2003-05-27 Thread Dan Sugalski
At 8:03 PM +0200 5/27/03, Leopold Toetsch wrote: Some additional remarks: The "memset" in smallobject.c is not necessary on Linux. mmap() (which obviously gets called for memalign - at least for this arena size) does clear the memory. We need some tests, from which size memory is cleard for mallo

Add #22337

2003-05-27 Thread Leopold Toetsch
Some additional remarks: The "memset" in smallobject.c is not necessary on Linux. mmap() (which obviously gets called for memalign - at least for this arena size) does clear the memory. We need some tests, from which size memory is cleard for malloc and memalign. I tossed the memset for now and s