LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-20-2006, 11:19 AM   #1
lashgari
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
most-frequently-used flag


hello!

how does linux flag a file as mfu, lfu, etc.?

is there basically a counter that counts up? or does the file index change if a file is or is not used often?

thank you for your input.

-Bahman
 
Old 06-22-2006, 03:25 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi,

And welcome to LQ!

And sorry, I have no idea you're talking about with mfu, lfu and the
likes... can you please elaborate on what you're trying to find out?


Cheers,
Tink
 
Old 06-22-2006, 12:12 PM   #3
lashgari
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Smile least - most frequently used

Hi!

I am starting to think Linux simply does not have this functionality.

Is there some place in the file system where a file is flagged as least/most frequently used?

When Norton Utilities tells me "these are the files most frequently used by your OS", is it getting that information from Linux? Or is it getting that information from somewhere like the BIOS, say, or some place else?

Put another way, can I write an application that looks for most frequently used files just like it would look for files that were created by me or created yesterday? Is there a system call for that? Or do I need to write that myself? How is NU doing it?

Thanks.

-Bahman
 
Old 06-22-2006, 01:31 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Depending on your distro you may want to use FAM and a FAM-Monitor.

Personally I always turn it off because of the system-overhead it
causes. The luxury of knowing what file has been accessed how often
isn't worth the constant CPU load (not to me, anyway - I can't understand
people who monitor their machines in a crippling way )

To find files created by my in a given time I'd use find.

find -user myself -atime -1
(or -ctime or -mtime, depending on what I'm after; the -1 means younger
than 24 hours [1 day]).


Cheers,
Tink
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
comp hangs frequently venkatrao Linux - Software 2 07-07-2005 06:39 AM
comp hangs frequently venkatrao Linux - Hardware 1 07-07-2005 05:23 AM
updatedb running too frequently lel800 Linux - Newbie 10 05-06-2005 04:28 PM
Firefox Crashing Frequently flamesrock Linux - Software 2 11-21-2004 06:31 PM
gmplayer crashes too frequently koodoo Linux - Newbie 1 11-02-2004 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration