Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Dist

patching jemalloc for linux

 

 

Varnish dist RSS feed   Index | Next | Previous | View Threaded


ingvar at redpill-linpro

Nov 9, 2009, 4:23 AM

Post #1 of 3 (1760 views)
Permalink
patching jemalloc for linux

Hello, Jason.

I sent a similar mail 2009-06-05. I guess you are busy on other
projects, but I dare bothering you anyway :-)

You may know the varnish project, where Poul-Henning Kamp is the main
developer. I maintain varnish in Fedora. Some time ago, I asked you
about some strangeness on RHEL5/ppc64.

Now for another case of strange architectures. I got a Fedora bug
because varnish does not compile on s390x, which is a secondary
supported arch in Fedora. The problem is that the version of jemalloc
that we use is missing the necessary ifdefs to work on s390x. So I made
the patch attached, and phk pointed at you.

I don't know much about the s390* platform family, but I got from one of
the Fedora s390x maintainers that the pointer size is 8 bytes, and that
'getconf PAGESIZE' returns 4096.

So, does the patch make sense?

And by the way, is there an upstream project of jemalloc?


Update: Added a similar patch for sparc. Same question.

Regards,
Ingvar Hagelund



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: varnish.s390x_pagesize.patch
Url: http://projects.linpro.no/pipermail/varnish-dist/attachments/20091109/9e9e301b/attachment.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: varnish.sparc_pagesize.patch
Url: http://projects.linpro.no/pipermail/varnish-dist/attachments/20091109/9e9e301b/attachment-0001.txt


des at des

Nov 9, 2009, 5:19 AM

Post #2 of 3 (1682 views)
Permalink
patching jemalloc for linux [In reply to]

Ingvar Hagelund <ingvar at redpill-linpro.com> writes:
> [jemalloc portability]

You should start by taking a look at Mozilla's version of jemalloc; they
might already have fixed these issues.

DES
--
Dag-Erling Sm?rgrav - des at des.no


jasone at canonware

Nov 9, 2009, 4:35 PM

Post #3 of 3 (1664 views)
Permalink
patching jemalloc for linux [In reply to]

Ingvar Hagelund wrote:
> I sent a similar mail 2009-06-05. I guess you are busy on other
> projects, but I dare bothering you anyway :-)

Yeah, I was finishing up school, so I was ignoring pretty much
everything else at the time. Thanks for your patience.

> [patches]
>
> And by the way, is there an upstream project of jemalloc?

The patches look fine, and I integrated the relevant portions to the
stand-alone jemalloc repository I've started maintaining:

http://canonware.com/cgi-bin/hg_jemalloc

The code is currently specific to Linux, but I may integrate support for
other platforms over time.

Thanks,
Jason

Varnish dist RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.