From: greg@kroah.com (Greg KH)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Custom Linux Kernel Scheduler issue
Date: Thu, 24 Nov 2016 08:18:50 +0100 [thread overview]
Message-ID: <20161124071850.GA11966@kroah.com> (raw)
In-Reply-To: <CAK7rcp-kjzeiyqXVm-2hAB8nqrZeq+NkYm-d0O3FneLz7GjKkA@mail.gmail.com>
On Thu, Nov 24, 2016 at 02:01:41AM -0500, Kenneth Adam Miller wrote:
> Hello,
>
>
> I have a scheduler issue in two different respects:
>
> 1) I have a process that is supposed to tight loop, and it is being
> given very very little time on the system. I don't want that - I want
> those who would use the processor to be given the resources to run as
> fast as they each can.
What is causing it to give up its timeslice? Is it waiting for I/O?
Doing something else to sleep?
> 2) I am seeing with perf that the maximum overhead at each section
> does not sum up to be more than 15 percent. Total, probably something
> like 18% of cpu time is used, and my binary has rocketed in slowness
> from about 2 seconds or less total to several minutes.
What changed to make things slower? Did you change kernel versions or
did you change something in your userspace program?
> I think that
> the linux scheduler isn't scheduling it, because this process is just
> some unit tests that double as benchmarks in that they shm_open a file
> and write into it with memcpy's.
Are you sure that I/O isn't happening here like through swap or
something else?
What does perf say is taking all of your time?
thanks,
greg k-h
next prev parent reply other threads:[~2016-11-24 7:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-24 7:01 Custom Linux Kernel Scheduler issue Kenneth Adam Miller
2016-11-24 7:18 ` Greg KH [this message]
[not found] ` <CAK7rcp9ih36KP5sL3_4QQhKvsofCJ8_um5tSW78jgj4pR42cYA@mail.gmail.com>
2016-11-24 15:31 ` Fwd: " Kenneth Adam Miller
2016-11-24 16:13 ` Greg KH
2016-11-24 16:33 ` Kenneth Adam Miller
2016-11-24 18:05 ` Kenneth Adam Miller
2016-11-24 18:47 ` Greg KH
2016-11-25 2:23 ` Kenneth Adam Miller
2016-11-24 18:46 ` Greg KH
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=20161124071850.GA11966@kroah.com \
--to=greg@kroah.com \
--cc=kernelnewbies@lists.kernelnewbies.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.
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.