View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 10 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Sep 15, 2008 3:26 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
If I do a ls -lt on a dir on my /myth partition, the files inside do not show the correct update time, rather, they should their creation time. Is there some option in my /etc/fstab for /dev/hda3 that would cause this?

Example, I have a script that runs every 5 min and updates some .rrd files. I know data is getting written to the files because my graphs are changing accordingly. When I do the ls -lt in the dir that contains the rrd database files, the update time is not correct:

Code:
ls -lt /myth/rrd_db
total 1596
-rw-r--r-- 1 www-data www-data 71584 Sep 15 16:37 average_hi.rrd
-rw-r--r-- 1 www-data www-data 71584 Sep 15 16:37 average_lo.rrd
-rw-r--r-- 1 www-data www-data 71584 Sep 15 16:37 dew.rrd
-rw-r--r-- 1 www-data www-data 71584 Sep 15 16:37 felt.rrd
-rw-r--r-- 1 www-data www-data 71584 Sep 15 16:37 hi.rrd


The last time the db's got updated was 17:25 yet I still see 16:37.

Thoughts?

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 15, 2008 5:19 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Two different sets of files? A bad shell alias for ls? ...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 15, 2008 5:46 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
tjc wrote:
Two different sets of files? A bad shell alias for ls? ...


I figured it out - it's the newer version of rrdtool. I compiled 1.3.3 from source and it doesn't seem to update the TDS. Neither does the unstable version from apt-get... thoughts?

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 15, 2008 8:33 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Is it not closing the files? Memory says that the date/time may not get updated until the file is closed...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 16, 2008 1:26 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
With my install of R5.5, the logs are in /myth/rrd/log/. The config is in /etc/rrd.config and this specifies where the db data is stored.

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 16, 2008 1:46 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
tjc wrote:
Is it not closing the files? Memory says that the date/time may not get updated until the file is closed...


I don't think so, tjc, because if I umount /myth it goes down fine (no busy message).

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 16, 2008 6:46 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Sounds like you'll have to go spelunking through the rrd code then.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 16, 2008 1:08 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
tjc wrote:
Sounds like you'll have to go spelunking through the rrd code then.


Kernel bug?

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 16, 2008 6:05 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Well, memory mapped I/O is strange territory, it takes funky paths through the guts of the systems page management and disk i/o subsystems, so it's not surprising that it misses certain standard file system housekeeping way points...

Since the older version of rrd used for the system monitoring pages works, using memory mapped i/o must be a recent change for rrd...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 16, 2008 8:31 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,
Wasn't there a command or damon that ran to do the time stamp monitoring that was turned off to add some performance? I remember reading a discustion on it a little while back but not sure where or even if it is the same animal.

Just a thought
Mike


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 20 guests


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 post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu