kgio RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: "Iñaki Baz Castillo" <ibc@aliax.net>
To: kgio@librelist.org
Subject: Re: Re: Using Kgio::Socket.pair and OpenSSL::SSL::Context for a new TLS stack in EventMachine
Date: Thu, 22 Dec 2011 16:57:56 +0100	[thread overview]
Message-ID: <CALiegfm7Dpo0=R5vHiey371udTOYCx5PN-vEMT6Of46C262-EQ@mail.gmail.com> (raw)
In-Reply-To: 20111222012835.GA1729@dcvr.yhbt.net

2011/12/22 Eric Wong <normalperson@yhbt.net>:
>> > This is with glibc malloc?  Can you try this with
>> > MALLOC_MMAP_THRESHOLD_=131072 set?  (Or some lower value, say 16384 or
>> > 4096...)
>>
>> Where to put that? maybe on top of the rubymain.cpp file?
>
> In your environment *before* exec-ing the Ruby process.  glibc reads
> this early during initialization.

Tested. Interesting, if I set MALLOC_MMAP_THRESHOLD_ to 4096 or 32XXX,
memory usage is the same, but after closing client connections, the EM
server again comes back to consume a few memory. If I don't set this
variable, the EM server memory usage is not decreased after client
disconnects all the connections.





-- 
Iñaki Baz Castillo
<ibc@aliax.net>

      reply	other threads:[~2011-12-22 15:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-09 14:58 Using Kgio::Socket.pair and OpenSSL::SSL::Context for a new TLS stack in EventMachine Iñaki Baz Castillo
2011-12-09 15:01 ` Iñaki Baz Castillo
2011-12-09 21:01   ` Eric Wong
2011-12-10 18:38     ` Iñaki Baz Castillo
2011-12-21 22:10     ` Iñaki Baz Castillo
2011-12-22  1:28       ` Eric Wong
2011-12-22 15:57         ` Iñaki Baz Castillo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/kgio/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALiegfm7Dpo0=R5vHiey371udTOYCx5PN-vEMT6Of46C262-EQ@mail.gmail.com' \
    --to=ibc@aliax.net \
    --cc=kgio@librelist.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/kgio.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).