From: Jens Axboe <axboe@kernel.dk>
To: Steven Lang <tirea@google.com>
Cc: fio@vger.kernel.org
Subject: Re: segfault runninng fio against 2048 jobs
Date: Fri, 20 Apr 2012 19:22:51 +0200 [thread overview]
Message-ID: <4F919B6B.1050607@kernel.dk> (raw)
In-Reply-To: <CAAUT-yMY-xK8HRYdN7Fe8KOuqqt2LyDp7OAX43-mikpU055rhQ@mail.gmail.com>
On 2012-04-20 18:22, Steven Lang wrote:
> It seems like a lot of what is in the thread_data structure does not
> need to be in shared memory; the configuration information is static
> (And in fact some of it is just pointers into process memory) and much
> of it is just used for the running job, such as anything referencing
> files or io_u. If instead of the whole structure, just necessarily
> shared parts were put in the shared segment, even OSs with limited
> shared segment sizes could better make use of shared memory and run
> more jobs.
>
> Not to mention that any job which runs in a thread rather than a
> process doesn't need to be in shared memory at all.
That is completely true, but that would require a much more invasive
change. Given that fio isn't _that_ heavy on the shm side (14KB per
process), my lazy side just thought that it would be easier just to have
a few segments for the unlikely cases where somebody did want to run
more than 2000 processes.
The options are around ~13% of the thread_data, so while moving just
that would be a bit easier (and mechanical), it would not be worth it
alone.
And yes, it's not needed for threads. The threads don't attach to it as
it is, so if you only run threads, it need not even be set up.
--
Jens Axboe
prev parent reply other threads:[~2012-04-20 17:22 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-17 21:05 segfault runninng fio against 2048 jobs Roger Sibert
2012-04-18 7:23 ` Jens Axboe
2012-04-18 9:02 ` Roger Sibert
2012-04-18 17:27 ` Roger Sibert
2012-04-18 18:16 ` Roger Sibert
2012-04-18 18:42 ` Jens Axboe
2012-04-18 18:39 ` Jens Axboe
2012-04-18 19:46 ` Roger Sibert
2012-04-20 6:40 ` Jens Axboe
2012-04-20 14:21 ` Roger Sibert
2012-04-20 14:27 ` Jens Axboe
2012-04-20 16:22 ` Steven Lang
2012-04-20 17:22 ` Jens Axboe [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F919B6B.1050607@kernel.dk \
--to=axboe@kernel.dk \
--cc=fio@vger.kernel.org \
--cc=tirea@google.com \
/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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.