On Thu, Jul 12, 2012 at 03:34:56PM +0100, Bryn M. Reeves wrote:
>
> It's possible that you have processes spending brief periods in
> D-state - short enough that they are hard to spot in top with the
> default sample period but long enough to count toward the load average
> (it's possible there's some other explanation though but that's what
> I'd try to rule out first).
>
> You could use tools like blktrace, iotop and latencytop to try to
> investigate further or if you're willing to install systemtap you
> could use the "sleepingBeauties.stp" script to look for processes
> spending >10ms in this state (and dump their stacks when they do).
>
With latencytop I see that the large latency processes are usually
caused by
1. `fsync() on a file': Firefox, Google Chrome, pidgin, emacs
2. `Waiting for buffer IO to complete': jbd2/dm-*
3. `SCSI disk ioctl': hddtemp
iotop doesn't show anything in particular other than once or twice one
of the desktop apps like Firefox showing up and going away almost
immediately.
I don't quiet know how to interpret any of the above output though.
PS: I will run the systemtap script later tonight.
--
Suvayu
Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
07-12-2012, 05:31 PM
Heinz Diehl
How to debug high system load?
On 12.07.2012, Suvayu Ali wrote:
> 1. `fsync() on a file': Firefox, Google Chrome, pidgin, emacs
> 2. `Waiting for buffer IO to complete': jbd2/dm-*
[....]
Fsync is expensive, but that's the way it is.
If you're using cfq as your scheduler, try this in rc.local:
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
07-15-2012, 07:16 AM
suvayu ali
How to debug high system load?
Hi Heinz,
Sorry for the late response.
On Thu, Jul 12, 2012 at 7:31 PM, Heinz Diehl <htd@fritha.org> wrote:
> On 12.07.2012, Suvayu Ali wrote:
>
>> 1. `fsync() on a file': Firefox, Google Chrome, pidgin, emacs
>> 2. `Waiting for buffer IO to complete': jbd2/dm-*
> [....]
>
> Fsync is expensive, but that's the way it is.
>
> If you're using cfq as your scheduler, try this in rc.local:
>
> echo "32" > /sys/block/sda/queue/iosched/quantum
> echo "0" > /sys/block/sda/queue/iosched/slice_idle
> echo "1" > /sys/block/sda/queue/iosched/low_latency
> echo "51200" > /sys/block/sda/queue/nr_requests
>
> Together with this in /etc/sysctl.conf:
>
> vm.dirty_ratio = 10
> vm.dirty_background_ratio = 5
>
I tend not to try things that I don't understand. Could please outline
briefly what the above suggestions do? I would like to understand before
I try them out.
Thanks,
--
Suvayu
Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
07-15-2012, 01:55 PM
Paweł Brodacki
How to debug high system load?
2012/7/15 suvayu ali <fatkasuvayu+linux@gmail.com>:
> Hi Heinz,
>
> Sorry for the late response.
>
> On Thu, Jul 12, 2012 at 7:31 PM, Heinz Diehl <htd@fritha.org> wrote:
>> On 12.07.2012, Suvayu Ali wrote:
(...)
>> If you're using cfq as your scheduler, try this in rc.local:
>>
>> echo "32" > /sys/block/sda/queue/iosched/quantum
>> echo "0" > /sys/block/sda/queue/iosched/slice_idle
>> echo "1" > /sys/block/sda/queue/iosched/low_latency
>> echo "51200" > /sys/block/sda/queue/nr_requests
>>
>> Together with this in /etc/sysctl.conf:
>>
>> vm.dirty_ratio = 10
>> vm.dirty_background_ratio = 5
>>
>
> I tend not to try things that I don't understand. Could please outline
> briefly what the above suggestions do? I would like to understand before
> I try them out.
>
> Thanks,
>
When vm.dirty_ratio percent of total system memory is taken up by
dirty pages (data waiting to be saved to disk), the process which is
generating disk writes will itself start writing out dirty data. It
means, that program will be made to stop using system buffers to hide
cost of writes, and to write the data to the disk.
When vm.dirty_background_ratio of total system memory is taken up by
dirty pages, the pdflush background writeback daemon will start
writing out dirty data.
If you keep these lower, the system will try to prevent accumulation
of large amounts of data to write. Therefore, when sync comes, you
will not have to wait for the accumulated data to be written to disk.
vm tunables are explained here:
https://www.kernel.org/doc/Documentation/sysctl/vm.txt.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
07-15-2012, 08:27 PM
Suvayu Ali
How to debug high system load?
Hi Paweł and Heinz,
On Sun, Jul 15, 2012 at 03:55:45PM +0200, Paweł Brodacki wrote:
> 2012/7/15 suvayu ali <fatkasuvayu+linux@gmail.com>:
> > Hi Heinz,
> >
> > Sorry for the late response.
> >
> > On Thu, Jul 12, 2012 at 7:31 PM, Heinz Diehl <htd@fritha.org> wrote:
> >> On 12.07.2012, Suvayu Ali wrote:
> (...)
> >> If you're using cfq as your scheduler, try this in rc.local:
> >>
> >> echo "32" > /sys/block/sda/queue/iosched/quantum
> >> echo "0" > /sys/block/sda/queue/iosched/slice_idle
> >> echo "1" > /sys/block/sda/queue/iosched/low_latency
> >> echo "51200" > /sys/block/sda/queue/nr_requests
> >>
> >> Together with this in /etc/sysctl.conf:
> >>
> >> vm.dirty_ratio = 10
> >> vm.dirty_background_ratio = 5
> >>
> >
> > I tend not to try things that I don't understand. Could please outline
> > briefly what the above suggestions do? I would like to understand before
> > I try them out.
> >
> > Thanks,
> >
>
> When vm.dirty_ratio percent of total system memory is taken up by
> dirty pages (data waiting to be saved to disk), the process which is
> generating disk writes will itself start writing out dirty data. It
> means, that program will be made to stop using system buffers to hide
> cost of writes, and to write the data to the disk.
>
> When vm.dirty_background_ratio of total system memory is taken up by
> dirty pages, the pdflush background writeback daemon will start
> writing out dirty data.
>
> If you keep these lower, the system will try to prevent accumulation
> of large amounts of data to write. Therefore, when sync comes, you
> will not have to wait for the accumulated data to be written to disk.
>
> vm tunables are explained here:
> https://www.kernel.org/doc/Documentation/sysctl/vm.txt.
Thanks for the nice explanation. But sadly this doesn't help either.
Earlier the load average on login would be ~ 1-1.5. With these changes,
it starts at ~ 2 and after about 5 minutes settles to ~ 1-1.2. For
example now my laptop has been running for 50 minutes and load is
hovering over 1.
--
Suvayu
Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
07-15-2012, 08:36 PM
Joe Zeff
How to debug high system load?
On 07/15/2012 01:27 PM, Suvayu Ali wrote:
Thanks for the nice explanation. But sadly this doesn't help either.
Earlier the load average on login would be ~ 1-1.5. With these changes,
it starts at ~ 2 and after about 5 minutes settles to ~ 1-1.2. For
example now my laptop has been running for 50 minutes and load is
hovering over 1.
OK, you've eliminated disk IO as the cause of your high load.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
07-15-2012, 11:00 PM
"Jared K. Smith"
How to debug high system load?
On Sun, Jul 15, 2012 at 4:27 PM, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:
> Thanks for the nice explanation. But sadly this doesn't help either.
> Earlier the load average on login would be ~ 1-1.5. With these changes,
> it starts at ~ 2 and after about 5 minutes settles to ~ 1-1.2. For
> example now my laptop has been running for 50 minutes and load is
> hovering over 1.
A co-worker has a similar problem with a new Lenovo ThinkPad -- it
turns out something about the audio chip was taking a lot more cpu
cycles than it should be -- I'll try to dig out some more details from
him.
--
Jared Smith
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
07-15-2012, 11:08 PM
Suvayu Ali
How to debug high system load?
On Sun, Jul 15, 2012 at 07:00:23PM -0400, Jared K. Smith wrote:
> On Sun, Jul 15, 2012 at 4:27 PM, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:
> > Thanks for the nice explanation. But sadly this doesn't help either.
> > Earlier the load average on login would be ~ 1-1.5. With these changes,
> > it starts at ~ 2 and after about 5 minutes settles to ~ 1-1.2. For
> > example now my laptop has been running for 50 minutes and load is
> > hovering over 1.
>
> A co-worker has a similar problem with a new Lenovo ThinkPad -- it
> turns out something about the audio chip was taking a lot more cpu
> cycles than it should be -- I'll try to dig out some more details from
> him.
>
Thanks a lot Jared.
--
Suvayu
Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
07-16-2012, 08:50 AM
Andrew Haley
How to debug high system load?
On 07/16/2012 12:00 AM, Jared K. Smith wrote:
> A co-worker has a similar problem with a new Lenovo ThinkPad -- it
> turns out something about the audio chip was taking a lot more cpu
> cycles than it should be -- I'll try to dig out some more details from
> him.
Fascinating. If so, how come those cycles weren't being accounted for?
Hmmmm....
Andrew.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
07-30-2012, 08:59 PM
Suvayu Ali
How to debug high system load?
Hello everyone,
On Thu, Jul 12, 2012 at 01:00:34PM +0200, Suvayu Ali wrote:
> Hi,
>
> I have a ThinkPad (Core i7, 2.67GHz) with F17 and I'm seeing high system
> loads persistently. Right from boot up I see loads of 1, and often it
> goes up to 2 or more.
>
> Things I have looked at:
> 1. I'm using Xfce, so the desktop environment is also light.
> 2. I looked at the output of `systemctl list-units' and don't see any
> unnecessary services enabled.
> 3. top only says currently Xorg is the most active process with 1% CPU
> activity. From the activity summary of atop since boot, I see it's
> Xorg with 3% CPU usage. And while idling all my 4 logical cores are
> throttled down and are at about 1%.
>
> So my question is since CPU usage is already so low, what could be
> driving up the system load? This is bugging me since I also see a
> general sluggishness compared to a much faster system early this year.
>
To answer myself; after I upgraded to kernel 3.4.6-2.fc17.x86_64
yesterday, I haven't seen any issues with load. My average load when
browsing, reading email, or other regular desktop activities is ~ 0.22.
Cheers,
--
Suvayu
Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org