Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[gelöst] Festplatten I/O bremst System aus
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
astaecker
Guru
Guru


Joined: 28 Apr 2003
Posts: 403
Location: Hamburg / Germany

PostPosted: Tue Nov 28, 2006 9:30 am    Post subject: [gelöst] Festplatten I/O bremst System aus Reply with quote

Moin,
mich stört es, dass, wenn emerge mal wieder ein neuen Kernel / kdelibs / mono entpackt, manche Sachen zu lange dauern. Dabei tritt fast ausschließlich Festplatten I/O auf, es liegt nicht am Rest des Systems. Programme, die schon laufen, laufen auch weiterhin in normaler Geschwindigkeit weiter. Aber z.B. das Starten von neuen Programmen dauert seine Zeit. Und dies ist was mich stört.

Den Gebrauch der CPU kann über "nice" priorisieren, kann man so etwas vielleicht auch für Festplatten I/O ?

P.S.: Mein System ist Stand der Technik: Intel Core 2 Duo, 1GB DDR2, SATA HDD.


Last edited by astaecker on Tue Dec 12, 2006 11:45 am; edited 1 time in total
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Tue Nov 28, 2006 9:36 am    Post subject: Reply with quote

Welches Filesystem wird verwendet?
Und die make.conf posten.
Back to top
View user's profile Send private message
astaecker
Guru
Guru


Joined: 28 Apr 2003
Posts: 403
Location: Hamburg / Germany

PostPosted: Tue Nov 28, 2006 9:41 am    Post subject: Reply with quote

Seit neuestem XFS, aber das war bei ext3 auch so.

make.conf:
Code:
USE="3dnow 3dnowext a52 aac acpi apache2 -arts bash-completion bluetooth bzip2 css curl -cups dvdread dxr3 -eds -encode -esd ffmpeg -fortran -gnome -gpm -gstreamer -gtk hbci -ipv6 kdeenablefinal kdehiddenvisibility -ldap -mikmod mmx mmxext mono mplayer musicbrainz nsplugin nvidia -oss pdf pic -qt4 real samba -sdl slang sse sse2 svg threads x264 xcomposite xvid xvmc"
INPUT_DEVICES="keyboard evdev"
VIDEO_CARDS="i810 vesa"

# Host Setting
HOST="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
CXXFLAGS="${CFLAGS}"

# Advanced Masking
# ================
ACCEPT_KEYWORDS="~x86"

# Portage Directories
# ===================
PORTDIR_OVERLAY="/usr/local/portage"
source /usr/portage/local/layman-wrapper/make.conf

# Fetching files
# ==============
GENTOO_MIRRORS_BASE="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
#GENTOO_MIRRORS="${GENTOO_MIRRORS_BASE}"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ${GENTOO_MIRRORS_BASE}"
#GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ${GENTOO_MIRRORS_BASE}"

# Synchronizing Portage
# =====================
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
#SYNC="rsync://rsync.gentoo.org/gentoo-portage"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"

# emerge options
EMERGE_DEFAULT_OPTS="--with-bdeps y --nospinner"

# Advanced Features
FEATURES="ccache parallel-fetch prelink"
MAKEOPTS="-j3"
CCACHE_SIZE="5G"
PORTAGE_NICENESS=19
LINGUAS="de"
#Mozilla-Firefox
LANGS="de"

#Logging
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_SYSTEM="save"
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Tue Nov 28, 2006 10:08 am    Post subject: Reply with quote

Hier liegt ein Fehler: ACCEPT_KEYWORDS="~x86"
Muß heißen: ACCEPT_KEYWORDS="x86 ~x86"

Vielleicht auch noch die Kernel config checken.
Back to top
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Tue Nov 28, 2006 10:10 am    Post subject: Reply with quote

Keruskerfuerst wrote:
Hier liegt ein Fehler: ACCEPT_KEYWORDS="~x86"
Muß heißen: ACCEPT_KEYWORDS="x86 ~x86"

Vielleicht auch noch die Kernel config checken.

Hä?
Das doch falsch ?!

Entweder ACCEPT_KEYWORDS="x86" oder ACCEPT_KEYWORDS="~x86" ?

Man darf doch nicht beides reinschreiben?
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Tue Nov 28, 2006 10:22 am    Post subject: Reply with quote

Jaein. In die make.conf wird nur ~x86 geschrieben.

emerge --info interpretiert das dann als: x86 ~x86

Tobi
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
astaecker
Guru
Guru


Joined: 28 Apr 2003
Posts: 403
Location: Hamburg / Germany

PostPosted: Tue Nov 28, 2006 10:22 am    Post subject: Reply with quote

Keruskerfuerst wrote:
Hier liegt ein Fehler: ACCEPT_KEYWORDS="~x86"
Muß heißen: ACCEPT_KEYWORDS="x86 ~x86"

Nein, das schon richtig so, obwohl deine Variante wahrscheinlich auch nicht falsch ist. Beides kenne ich nur von emerge --info.

Keruskerfuerst wrote:
Vielleicht auch noch die Kernel config checken.

Hast du da etwas Bestimmtes im Sinn ?
Wie kann man eigentlich aus der Kommandozeile Text in die Zwischenablage kopieren ?
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Tue Nov 28, 2006 10:25 am    Post subject: Reply with quote

Kernel config:

ob eben die Treiber für den Chipsatz und die SATA Ports im Kernel enthalten sind.
Back to top
View user's profile Send private message
astaecker
Guru
Guru


Joined: 28 Apr 2003
Posts: 403
Location: Hamburg / Germany

PostPosted: Tue Nov 28, 2006 10:37 am    Post subject: Reply with quote

Ja, sind sie.
Ich habe ein Intel DG965MK Mainboard mit ICH8 Southbrigde. Im BIOS habe ich AHCI aktiviert und dementsprechend auch den Kernel konfiguriert:
Code:

#
# SCSI device support
#
# CONFIG_RAID_ATTRS is not set
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
# CONFIG_BLK_DEV_SR is not set
# CONFIG_CHR_DEV_SG is not set
# CONFIG_CHR_DEV_SCH is not set
#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
# CONFIG_SCSI_MULTI_LUN is not set
# CONFIG_SCSI_CONSTANTS is not set
# CONFIG_SCSI_LOGGING is not set

#
# SCSI Transport Attributes
#
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SAS_ATTRS is not set

#
# SCSI low-level drivers
#
# CONFIG_ISCSI_TCP is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC7XXX_OLD is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_MEGARAID_NEWGEN is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not set
CONFIG_SCSI_SATA=y
CONFIG_SCSI_SATA_AHCI=y
# CONFIG_SCSI_SATA_SVW is not set
# CONFIG_SCSI_ATA_PIIX is not set
# CONFIG_SCSI_SATA_MV is not set
# CONFIG_SCSI_SATA_NV is not set
# CONFIG_SCSI_PDC_ADMA is not set
# CONFIG_SCSI_HPTIOP is not set
# CONFIG_SCSI_SATA_QSTOR is not set
# CONFIG_SCSI_SATA_PROMISE is not set
# CONFIG_SCSI_SATA_SX4 is not set
# CONFIG_SCSI_SATA_SIL is not set
# CONFIG_SCSI_SATA_SIL24 is not set
# CONFIG_SCSI_SATA_SIS is not set
# CONFIG_SCSI_SATA_ULI is not set
# CONFIG_SCSI_SATA_VIA is not set
# CONFIG_SCSI_SATA_VITESSE is not set
CONFIG_SCSI_SATA_INTEL_COMBINED=y
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_QLA_FC is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_DC390T is not set
# CONFIG_SCSI_NSP32 is not set
# CONFIG_SCSI_DEBUG is not set

Das funktioniert auch alles soweit. Ich kann mich sonst nicht beklagen.
Aber das Problem bestand IMHO mit meinem alten Rechner. Wie ist es denn bei euch ?
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Tue Nov 28, 2006 10:48 am    Post subject: Reply with quote

Dies liegt vielleicht an den fehlenden LDFLAGS:
Meine lauten:
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,-znow -Wl,-s -Wl,--enable-new-dtags -Wl,--as-needed"
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Tue Nov 28, 2006 10:57 am    Post subject: Reply with quote

Keruskerfuerst wrote:
Dies liegt vielleicht an den fehlenden LDFLAGS:
Meine lauten:
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,-znow -Wl,-s -Wl,--enable-new-dtags -Wl,--as-needed"


Wo hast du die her? Im gentoo-wiki steht da nicht sonderlich viel.

Tobi
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Tue Nov 28, 2006 11:02 am    Post subject: Reply with quote

Aus man ld.
Back to top
View user's profile Send private message
astaecker
Guru
Guru


Joined: 28 Apr 2003
Posts: 403
Location: Hamburg / Germany

PostPosted: Tue Nov 28, 2006 11:07 am    Post subject: Reply with quote

Ich nutze ja eigentlich die sicheren LDFLAGS.
Ich kann mir vorstellen, dass optimierte LDFLAGS das Laden von Programmen etwas beschleunigt, aber nicht einen derartigen Ausfall verhindert (ich habe einen Portage Baum extrahiert und dabei Firefox unter KDE geladen, was eine knappe Minute gedauert hat).
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Tue Nov 28, 2006 11:08 am    Post subject: Reply with quote

Wie sicher sind die denn? Will mir nicht mein System zerschießen.

Dass wir verschiedene Systeme haben, dürfte auch nichts machen?
Wenn nein, dann übernehm ich sie einfach mal :)

Tobi
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Tue Nov 28, 2006 11:12 am    Post subject: Reply with quote

Hi!

Also ich habe schon öfters mit LDFlags Probleme gehabt ...

Das einzige, was bei mir wirklich und immer safe war ist "-Wl,-O1"
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Tue Nov 28, 2006 11:12 am    Post subject: Reply with quote

LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,-znow -Wl,-s -Wl,--enable-new-dtags -Wl,--as-needed"

Ich habe mit diesem Flags das ganze System kompiliert. Also: Basis, X11, GTK,Gnome, VLC, ein paar kleine Programme.
Nur gst-plugins 0.8.11 (stabile Version) läßt sich damit nicht kompilieren. Da mußte ich -Wl,--as-needed weglassen. Ein Patch, der dieses Problem behebt, ist schon programmiert und wird gestestet.


Last edited by Keruskerfuerst on Tue Nov 28, 2006 4:03 pm; edited 2 times in total
Back to top
View user's profile Send private message
Klaus Meier
Advocate
Advocate


Joined: 18 Apr 2005
Posts: 2908
Location: Bozen

PostPosted: Tue Nov 28, 2006 11:27 am    Post subject: Reply with quote

Ich denke mal, daß dein System einfach nicht mehr hergibt. Irgendwo ist halt Schluß mit CPU und Festplattenleistung. Bei mir war dieser Effekt unter XFS extrem, welches du ja auch benutzt. Da dauert ein emerge --sync stellenweise eine halbe Stunde, wenn man noch was anderes nebenher gemacht hat. Kann dir in diesem Zusammenhang nur zu ext3 raten. Reiser3 frißt mehr CPU-Leistungs als ext3.

Bezüglich der CFLAGS und LDFLAGS gab es ja vor kurzem einen Artikel in den GWN. Da stand ganz deutlich: Bei CFLAGS maximal -O2 -fomit-frame-pointer setzen. Und keine LDFLAGS. Alles andere bringt mehr Streß als Nutzen. Alles andere soll nutzen wer will, aber ich wäre mit solchen Empfehlungen vorsichtig.

Pakete, die von höheren Optimierungen profitieren und damit auch keine Probleme machen, setzen diese Flags meistens alleine.
Back to top
View user's profile Send private message
dakjo
Veteran
Veteran


Joined: 31 Jan 2004
Posts: 1544

PostPosted: Tue Nov 28, 2006 1:39 pm    Post subject: Reply with quote

1.)Zusätzlich LDFLAGS halte ich für den falschesten Lösungsansatz. Weil
a)Es hier um Hardware geht.
b)Genau das zu mehr fehlern als nutzen führt.

2.)Mit bonnie datendurchsatz messen und dann kontrollieren ob dies auch beim emerge eintritt iostat.

3.)Ist Preempt im Kernel an?

4.)Filesystem ext3 oder reiserfs(kann ich nicht empfehlen aber ok), xfs ist für TB-FS gedacht.

5.)Was ist das für eine HDD? 5400/7500/10000rpm? Cache? Evtl ist die Platte einfach langsam?
Back to top
View user's profile Send private message
astaecker
Guru
Guru


Joined: 28 Apr 2003
Posts: 403
Location: Hamburg / Germany

PostPosted: Tue Nov 28, 2006 3:10 pm    Post subject: Reply with quote

dakjo wrote:
2.)Mit bonnie datendurchsatz messen und dann kontrollieren ob dies auch beim emerge eintritt iostat.

Ohne Last:
Code:
                -------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 55706 87.0 775381 75.7 1050321 65.6 57074 92.5 2661676 83.2 111129.6 100.0


Mit Last (extrahieren von gcc):
Code:
                -------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 57529 95.5 643002 57.8 471824 40.5 57846 95.1 804215 37.7 16893.1 16.9

Nun, ich kenne mich bonnie nicht so aus. Was bedeuten die Zahlen ?

dakjo wrote:
3.)Ist Preempt im Kernel an?

Jupp

dakjo wrote:
5.)Was ist das für eine HDD? 5400/7500/10000rpm? Cache? Evtl ist die Platte einfach langsam?

SAMSUNG SP2004C, 7200 UPM, 8MB Cache •, 8.9 ms mittlere Zugriffszeit
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Tue Nov 28, 2006 3:13 pm    Post subject: Reply with quote

Ich habe zwei Samsung SP1614C und mit diesem Festplatten läuft mein System (Athlon64 3200) sehr flüssig.
Ich benutze das Filesystem ext3 mit ein wenig Tuning. Einfach dazu mal die Boardsuche benutzen.
Back to top
View user's profile Send private message
AROK
Guru
Guru


Joined: 31 Jul 2006
Posts: 442
Location: D und CH

PostPosted: Tue Nov 28, 2006 6:18 pm    Post subject: Reply with quote

Hallo,

bei mir geht die CPU Last bei operationen mit großen Dateien immer auf 100%. Ist das normal? Sollte das mit DMA (ist auch AN) nicht eigentlich ohne große CPU Belastung gehen?

Gruß
AROK
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Tue Nov 28, 2006 6:29 pm    Post subject: Reply with quote

Dies hängt auch vom verwendeten Filesystem ab.
Back to top
View user's profile Send private message
AROK
Guru
Guru


Joined: 31 Jul 2006
Posts: 442
Location: D und CH

PostPosted: Wed Nov 29, 2006 6:07 pm    Post subject: Reply with quote

Keruskerfuerst wrote:
Dies hängt auch vom verwendeten Filesystem ab.


tritt bei mir auf bei ext3 zu ext3, ext3 zu fat und fat zu ext3.
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Fri Dec 01, 2006 7:55 pm    Post subject: Reply with quote

Die Schreib/Leserate ist natürlich bei den Festplatten immer begrenzt.
Daran ist nichts zu ändern.
Back to top
View user's profile Send private message
mrsteven
Veteran
Veteran


Joined: 04 Jul 2003
Posts: 1939

PostPosted: Fri Dec 01, 2006 11:12 pm    Post subject: Re: Festplatten I/O bremst System aus Reply with quote

arlsair wrote:
Den Gebrauch der CPU kann über "nice" priorisieren, kann man so etwas vielleicht auch für Festplatten I/O?


Wenn du den CFQ-IO-Scheduler verwendest, dann wirkt sich der nice-Wert so weit ich weiß auch auf die Festplattenzugriffe aus. Aber im Prinzip ist das mehr Symptombekämpfung, dein Problem ist die hohe CPU-Last bei Zugriffen auf die Platte.

Steht denn in deinen Logs etwas verdächtiges? Insbesondere die Kernelmeldungen nach dem Booten (dmesg) wären interessant.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum