TOP
SSV Software Systems Register  Register
Log in to check your private messages  Log in to check your private messages
Startseite FAQ Search Mitglieder Profile  Log in 
SSV Support-Forum
Flash-Schreibvorgänge prüfen

 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> eSOM/2x86
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
hne



Joined: 11 Jul 2008
Posts: 210
Location: Hannover

PostPosted: 26.09.2011, 17:55    Post subject: Flash-Schreibvorgänge prüfen Reply with quote

Bei Flash-Bausteine in Embedded Systemen sollte man die Schreibvorgänge so gering wie möglich halten, um die Lebensdauer des Flash nicht unnötig zu verkürzen.

Auch wenn das eigene Programm keine Schreibvorgänge im Flash macht, könnten zusätzlich installierte Pakete im MAX-Linux (z.B. Syslog, Mail, Cron) versehentlich schreiben. Um das zu überprüfen, sollte man über einen Zeitraum von mindestens 24 Stunden die wirklich auf dem System stattfindenden Schreibvorgänge analysieren.

Am Einfachsten geht das über die Angaben aus /proc/diskstats
Code:
emblinux:~# cat /proc/diskstats | grep sda5
   8    5 sda5 3819 77702 175 350


Die vier Zahlen geben an (Documentation/iostats.txt):
Quote:
Field 1 -- # of reads issued
Field 2 -- # of sectors read
Field 3 -- # of writes issued
Field 4 -- # of sectors written


Wobei hier nur das letzte Feld 4 interessiert. Dieses zeigt die Anzahl der seit dem Booten geschriebenen Sektoren (ein Sektor a 512 Bytes), 350 Sektoren in dem obigen Beispiel.
_________________
Henry Nestler
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SSV-Forum Forum Index >>> eSOM/2x86 All times are GMT + 1 Hour
Page 1 of 1

 
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

SSV Software Systems GmbH

Dünenweg 5
30419 Hannover

Fon: +49(0)511  ·  40 000-0
Fax: +49(0)511  ·  40 000-40

sales@ssv-embedded.de


Impressum    ·    Datenschutz    ·    AGB

© 2023 SSV SOFTWARE SYSTEMS GmbH. Alle Rechte vorbehalten.

ISO 9001:2015