Bug 2636 - HDD I/O drops to 229kb/sec if highmem is enabled
Summary: HDD I/O drops to 229kb/sec if highmem is enabled
Status: CLOSED CODE_FIX
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: Other (show other bugs)
Hardware: i386 Linux
: P2 blocking
Assignee: Andrew Morton
URL:
Keywords:
: 4703 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-04 08:37 UTC by Ludwig Ruderstaller
Modified: 2008-09-22 08:56 UTC (History)
6 users (show)

See Also:
Kernel Version: 2.6.5
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
additional Hardware Info and Kernel Config (28.78 KB, text/plain)
2004-05-04 08:38 UTC, Ludwig Ruderstaller
Details
A kernel profile capture (30.97 KB, application/octet-stream)
2005-09-18 23:39 UTC, Boris Fersing
Details

Description Ludwig Ruderstaller 2004-05-04 08:37:52 UTC
Distribution: Gentoo
Hardware Environment: P4 Prescott HT, 4x512MB RAM, 7000series Escalade
(Mirroring), 2X 120GB HDD (WDC WD1200JB-00FUA0)
Software Environment:

Problem Description: As soon as Highmem is enabled, the I/O drops down to
~229kb/sec in putc/getc mode. (block writing is faster, but also not on normal)

The hddsmart shows no errors on the HDD's.  escalade bios tool to verfiy data
shows also no problems. 

memtest86 shows no errors in the rammodules, also a switch (bank 0 to bank 1) of
the modules makes no different. (thought maybe the ram on the second bank is
damaged and so without highmem it isnt used)

let me know if you need further information. ssh access is possible if needed
(not yet in production enviroment).
Comment 1 Ludwig Ruderstaller 2004-05-04 08:38:40 UTC
Created attachment 2785 [details]
additional Hardware Info and Kernel Config
Comment 2 Petar Forai 2005-06-03 09:49:25 UTC
Distro: Gentoo
HW: P4 Prescott, HT enabled, 2x512MB RAM, ICH6 in AHCI mode, 1x WD Raptor 740GD

i have exactly the same problem over here, posted it already in gentoo's bugzilla  
and forum, seems that a few ppl have related/same troubles with highmem enabled
kernels regarding disc performance. with a highmem enabled kernel my boot time
is ~10mins vs < 1min as compared to a highmem enabeld kernel booted with flag
mem=880MB. app start up times are also in the same magnitude slower. general cpu
/system performance seems unaffected.

bonnie output:

highmem, > 1000MB RAM booted
Seeker 1...Seeker 2...Seeker 3...start 'em...done...done...done...
              -------Sequential Output-------- ---Sequential Input-- --Random--
              -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
Machine    MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU
          100   843 99.9 214295 78.5 766914 100.3   731 99.9 2364623 101.6
97878.5 185.9

highmem <= 880MB RAM booted
Seeker 1...Seeker 2...Seeker 3...start 'em...done...done...done...
              -------Sequential Output-------- ---Sequential Input-- --Random--
              -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
Machine    MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU
          100 45898 99.7 393189 100.2 894995 94.4 50903 100.0 2453987 100.6
147552.5 184.4

Linux eistee 2.6.12-rc4 #2 SMP. Tried -mm, gentoo-dev-sources, love-sources, i
can always reproduce it.

how comes that this bug report is over a year old and nobody of the devs replied?
Comment 3 Adrian Bunk 2005-07-03 13:06:45 UTC
Andrew, do you have any idea what might be causeing such problems?
Comment 4 Andrew Morton 2005-07-03 13:37:10 UTC
Nope.  We'd need to see a kernel profile.
Comment 5 Adrian Bunk 2005-07-04 11:38:28 UTC
If you tell them what exactly you want you might get it.  ;-)
Comment 6 Adrian Bunk 2005-07-04 11:38:45 UTC
*** Bug 4703 has been marked as a duplicate of this bug. ***
Comment 7 Petar Forai 2005-07-04 13:00:53 UTC
just tell me what to do and i'll do it. i'm happy to be able to contribute and
the problem to be solved is in my very personal interest.
Comment 8 Petar Forai 2005-07-04 17:20:15 UTC
just tell me what to do and i'll do it. i'm happy to be able to contribute and
the problem to be solved is in my very personal interest.
Comment 9 Adrian Bunk 2005-08-07 11:48:55 UTC
Sorry for the late answer, please read Documentation/basic_profiling.txt in the
kernel sources.
Comment 10 Boris Fersing 2005-09-17 13:59:42 UTC
Hi,

I've exactly the same problem here on my 2GB RAM Notebook.

When I boot with mem=1G the system speed is OK.

I just read the basic_profile doc, it seems that there is 2 methods (readprofile
and Oprofile)... which one should I use ? What is better ?

Thanks in advance !

Boris.
Comment 11 Andrew Morton 2005-09-17 14:12:33 UTC
readprofile should be sufficient.  oprofile is superior, but
takes a bit more effort.  Thanks.

Comment 12 Boris Fersing 2005-09-18 23:39:20 UTC
Created attachment 6058 [details]
A kernel profile capture

Hi,

Here is my kernel profile captured with : readprofile -m /boot/System.map >
captured_profile

HTH

Thanks.
Comment 13 Andrew Morton 2005-09-18 23:56:05 UTC
hm, the cpu is almost totally idle.

Bart, have you any ideas?
Comment 14 Boris Fersing 2005-09-19 00:09:25 UTC
I didn't mention that but :

I just let the machine boot while I went to my work place and then log in via
ssh, the machine does "nothing" actually ... can that explain why the CPU is idle ?

Thanks,

Boris.
Comment 15 Natalie Protasevich 2007-09-08 20:38:15 UTC
Any updates on this problem? Has it been resolved, or still happens with new kernels?
Thanks.
Comment 16 Natalie Protasevich 2008-03-03 20:05:21 UTC
Since no activity for quite long time, I am closing the bug.
Please reopen if it is confirmed with latest kernel.
Comment 17 Boris Fersing 2008-09-16 07:46:54 UTC
I still have this problem with the 2.6.25.6.

Please Reopen this bug.

Tell me if you want some logs / profiling and how to get these informations.

Regards,

Boris Fersing

PS : I didn't change my hardware since the comment #10
Comment 18 Boris Fersing 2008-09-19 08:56:07 UTC
I updated to the most latest stable kernel : 2.6.26.5 because I wanted to do a profiling and I found out that this version doesn't have this bug anymore. 

It seems to be fixed... I'm sorry for the reopen request, I should have tried the 2.6.26.5 before.

regards,

Note You need to log in before you can comment on or make changes to this bug.