Gentoo Forums
Gentoo Forums
Quick Search: in
FAM crap-out
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Tue Jul 02, 2002 2:57 am    Post subject: FAM crap-out Reply with quote

I can't file a bug report on this, because I don't have any information. Every once-in-a-while, my computer will suddenly become very unresponsive, and upon investigation I quickly find tha my fam process is eating 99.7% of both CPUs. "Crap, dude!" /etc/init.d/fam restart brings life back to normal again...

...for a while. fam ran away twice on me in the past two hours, so I decided to shut it down and keep it dead. (Seems like a good solution, eh?) Anyway, just thought I would say something somewhere in case anyone else is having this issue.
Back to top
View user's profile Send private message
Tuxisuau
Apprentice
Apprentice


Joined: 04 May 2002
Posts: 213
Location: Catalunya (Europe)

PostPosted: Tue Jul 02, 2002 12:49 pm    Post subject: Same problem Reply with quote

I had the same problem with my old debian. Now I simply didn't emerge fam, cause i don't need it. Maybe l'll give it a try again if they seem to solve the problem, so if they do and you know, notify me. Simply answering this thread will be enough ;)
_________________
IM me at tuxisuau@jabber.7a69ezine.org
Back to top
View user's profile Send private message
fkurth
n00b
n00b


Joined: 15 Apr 2002
Posts: 27
Location: Dresden/Germany

PostPosted: Wed Jul 03, 2002 5:37 pm    Post subject: me too Reply with quote

I also had the problem.

But its also possible that a buggy process are asking fam to death....
Is there a way to figure out what processes currently using fam ?
_________________
--
Felix Kurth
Back to top
View user's profile Send private message
fkurth
n00b
n00b


Joined: 15 Apr 2002
Posts: 27
Location: Dresden/Germany

PostPosted: Thu Jul 04, 2002 9:43 pm    Post subject: Help to track down Reply with quote

I opened a bug at:

http://oss.sgi.com/bugzilla/show_bug.cgi?id=158

if you also have this bug, consider helping to track it down. If you have an idea please post...
_________________
--
Felix Kurth
Back to top
View user's profile Send private message
kadmos
n00b
n00b


Joined: 22 Jun 2002
Posts: 10
Location: Australia

PostPosted: Fri Jul 05, 2002 4:24 am    Post subject: Re: FAM crap-out Reply with quote

Hi

I am currently the FAM maintainer. Thanks to Felix for notifying me of
this problem.

I installed Gentoo 1.2 on my home system a while back, and despite
fam-oss being required by KDE, it seemed no xinetd service definition was
provided, and fam was not enabled by default. (I plan on providing a
default xinetd service file in a future FAM release so users don't need to
make their own.)

How is fam being started on your systems? Did you add it to xinetd?

A few Debian users have reported problems with the DNotify patch. Is
anybody able to rebuild FAM without the DNotify patch and tell me
whether they still see this problem?

Is the problem reproducible when running fam with the -d flag? If so,
if somebody could provide the debug output that would be helpful. If not,
please try running fam with the -f flag, which is mostly identical to running
fam with no flags, except it forces fam to stay in the foreground.

What type are the filesystems that are being monitored? Is anybody
seeing this on filesystems other than ReiserFS?

Please continue this thread on the FAM mailing list (fam@oss.sgi.com) or
in SGI's Bugzilla (http://oss.sgi.com/bugzilla).

Thanks

--
MICHAEL WARDLE
wardle@sgi.com
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Fri Jul 05, 2002 4:26 am    Post subject: Reply with quote

I'm not running FAM over a network, this is all on local disks. I just use the init script (/etc/init.d/fam start)...

I'll modify it to use -d and keep you posted.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 15977
Location: Colorado

PostPosted: Fri Jul 05, 2002 4:33 am    Post subject: Reply with quote

On the off chance anyone else is wondering, FAM is file alteration monitor.
_________________
Safety is my gaol.
US Constitution | Amendments
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Fri Jul 05, 2002 4:34 am    Post subject: Reply with quote

kanuslupus wrote:
On the off chance anyone else is wondering, FAM is file alteration monitor.


Or, more thoroughly, man fam:

Code:
fam(1M)                                                   fam(1M)



NAME
       fam - file alteration monitor

SYNOPSIS
       /usr/etc/fam [ -f | -v | -d ] [ -l | -t NFS_polling_interval ]
            [ -T idle_timeout ] [ -p program.version ] [ -L ] [ -C ]
            [ -c config_file ]

DESCRIPTION
       fam  is a server that tracks changes to the filesystem and
       relays these changes to interested applications.  Applica-
       tions  such as fm(1G) and mailbox(1) present an up-to-date
       view of the filesystem.  In  the  absence  of  fam,  these
       applications  and  others like them are forced to poll the
       filesystem to detect changes.  fam is more efficient.

       Applications can request  fam  to  monitor  any  files  or
       directories  in  any filesystem.  When fam detects changes
       to monitored files, it notifies the  appropriate  applica-
       tion.   The  FAM  API provides a programmatic interface to
       fam; see fam(3X).

       fam is informed of filesystem changes as  they  happen  by
       the  kernel through the imon(7M) pseudo device driver.  If
       asked to monitor files on an NFS mounted  filesystem,  fam
       tries  to  use fam on the NFS server to monitor files.  If
       fam cannot contact  a  remote  fam,  it  polls  the  files
       instead.  fam also polls special files.

       Normally,  fam  is started by inetd(1M).  It is registered
       with portmap(1M) as performing the sgi_fam service.

_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
aardvark
Guru
Guru


Joined: 30 Jun 2002
Posts: 576

PostPosted: Fri Jul 05, 2002 10:08 am    Post subject: Re: FAM crap-out Reply with quote

kadmos wrote:
Hi

I am currently the FAM maintainer. Thanks to Felix for notifying me of
this problem.

I installed Gentoo 1.2 on my home system a while back, and despite
fam-oss being required by KDE, it seemed no xinetd service definition was
provided, and fam was not enabled by default. (I plan on providing a
default xinetd service file in a future FAM release so users don't need to
make their own.)

How is fam being started on your systems? Did you add it to xinetd?

A few Debian users have reported problems with the DNotify patch. Is
anybody able to rebuild FAM without the DNotify patch and tell me
whether they still see this problem?

Is the problem reproducible when running fam with the -d flag? If so,
if somebody could provide the debug output that would be helpful. If not,
please try running fam with the -f flag, which is mostly identical to running
fam with no flags, except it forces fam to stay in the foreground.

What type are the filesystems that are being monitored? Is anybody
seeing this on filesystems other than ReiserFS?

Please continue this thread on the FAM mailing list (fam@oss.sgi.com) or
in SGI's Bugzilla (http://oss.sgi.com/bugzilla).

Thanks

--
MICHAEL WARDLE
wardle@sgi.com


ahem, you are the fam maintainer? aha, at sgi, ok! I was thinking; for gentoo :-)

rc-update add fam default...............

that's the way it is set up to be started at boot time !

starting it, via the script : /etc/init.d/fam start
Back to top
View user's profile Send private message
aardvark
Guru
Guru


Joined: 30 Jun 2002
Posts: 576

PostPosted: Fri Jul 05, 2002 10:22 am    Post subject: Reply with quote

Maybe we should patch the kernel to use Imon instead of dnotify.
the patches at sgi are for 2.4.17 however. Would it be easy to pop them into the gentoo kernel? (which is 2.4.18 + -> 2.4.19 isn't it?)
There is also a new fam version. No ebuild yet (it needs a patch for gentoo (dnotify), so i could make the ebuild myself from the prevous one)
Back to top
View user's profile Send private message
fkurth
n00b
n00b


Joined: 15 Apr 2002
Posts: 27
Location: Dresden/Germany

PostPosted: Fri Jul 05, 2002 5:18 pm    Post subject: Reply with quote

I think imon isnt ready for production yet.
Read
ftp://oss.sgi.com/www/projects/fam/download/imon/imon-0.0.2-2.4.17
about it.
The current problem seems to be related to dnotify.
_________________
--
Felix Kurth
Back to top
View user's profile Send private message
fkurth
n00b
n00b


Joined: 15 Apr 2002
Posts: 27
Location: Dresden/Germany

PostPosted: Fri Jul 05, 2002 5:34 pm    Post subject: Reply with quote

I made an ebuild for fam-oss ver. 2.6.8 with dnotify.
See:
http://bugs.gentoo.org/show_bug.cgi?id=4587
for the files.
Please test an report.

(surely this wont solve the current problem)
_________________
--
Felix Kurth
Back to top
View user's profile Send private message
kadmos
n00b
n00b


Joined: 22 Jun 2002
Posts: 10
Location: Australia

PostPosted: Sat Jul 06, 2002 3:57 am    Post subject: Reply with quote

aardvark wrote:
Maybe we should patch the kernel to use Imon instead of dnotify.


I'd suggest staying with DNotify as it comes with the standard kernel.
Many users reported using IMon successfully, but it was an extra job for
me to produce IMon patches every time a new Linux kernel was released.
Since DNotify seems to do the job of IMon on Linux, I'm no longer actively
supporting IMon on Linux.

I don't know if the issue that people are having here is due to DNotify --
I just wanted to rule out that possibility.

I've had a look at Gentoo's fam initialization script, and it's interesting
that it uses Debian's "start-stop-daemon". If Debian and Gentoo users
are experiencing similar problems I'll have to remember to see how
FAM interacts with this utility.
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Sat Jul 13, 2002 6:33 pm    Post subject: Reply with quote

delta407 wrote:
I'll modify it to use -d and keep you posted.


Well, fam has been running with -d for a week now with no issues to speak of. I'll keep running it, though, so if it breaks again I'll let you know.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
Woolmonkey
n00b
n00b


Joined: 29 Apr 2002
Posts: 62

PostPosted: Tue Aug 06, 2002 6:11 am    Post subject: Reply with quote

How to you get dnotify to work with fam?
Back to top
View user's profile Send private message
aardvark
Guru
Guru


Joined: 30 Jun 2002
Posts: 576

PostPosted: Tue Aug 13, 2002 9:35 pm    Post subject: Reply with quote

delta407 wrote:
delta407 wrote:
I'll modify it to use -d and keep you posted.


Well, fam has been running with -d for a week now with no issues to speak of. I'll keep running it, though, so if it breaks again I'll let you know.


Did it work for you? (It's been a while)
Where did you put the -d in the script?

I discovered ( by running it from the console with -d) that when this cpu 100 % thing happens , it throws
Code:

***************  overflow famqueue ********************

onto the console in hight quantity :(


Tunrning on fam (while it works)
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Wed Aug 14, 2002 6:15 am    Post subject: Reply with quote

aardvark wrote:
delta407 wrote:
delta407 wrote:
I'll modify it to use -d and keep you posted.


Well, fam has been running with -d for a week now with no issues to speak of. I'll keep running it, though, so if it breaks again I'll let you know.


Did it work for you? (It's been a while)
Where did you put the -d in the script?


Still no issues. The relevant chunk of /etc/init.d/fam:

Code:
start() {
        ebegin "Starting fam"
        start-stop-daemon --start --quiet --exec /usr/bin/fam --background \
                -- -T 0 -c /etc/fam.conf -d
        eend $?
}

_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
c_kuzmanic
Guru
Guru


Joined: 18 Apr 2002
Posts: 488
Location: Los Angeles , California

PostPosted: Thu Aug 22, 2002 10:49 pm    Post subject: fam crap-out Reply with quote

Yep, got the same problem. I've noticed that it usually occurs when I run transcode while encoding avi's. After about 5 minutes or so fam will run amok, causing 99.9 processor load. Heavy disk access seems to trigger the problem at least in my case.
Back to top
View user's profile Send private message
aardvark
Guru
Guru


Joined: 30 Jun 2002
Posts: 576

PostPosted: Thu Aug 22, 2002 11:08 pm    Post subject: Reply with quote

There is a new version but it's masked for testing... They should test the old one as well.... :twisted:
Back to top
View user's profile Send private message
Coogee
Apprentice
Apprentice


Joined: 23 Apr 2002
Posts: 184
Location: E.U.

PostPosted: Sat Aug 24, 2002 7:34 pm    Post subject: Re: fam crap-out Reply with quote

c_kuzmanic wrote:
Yep, got the same problem. I've noticed that it usually occurs when I run transcode while encoding avi's. After about 5 minutes or so fam will run amok, causing 99.9 processor load. Heavy disk access seems to trigger the problem at least in my case.

Yes, I also got problems with fam and encoding avis. Perhaps fam can not handle very big files (> 2 GB). Therefore I switched it off.
Back to top
View user's profile Send private message
aardvark
Guru
Guru


Joined: 30 Jun 2002
Posts: 576

PostPosted: Sun Sep 22, 2002 10:10 am    Post subject: Reply with quote

I know, I am "bumpin" this one up again but I have found a relationship concerning fam.
I always used my system with "lisa" to enable browsing on the "windows/samba" lan. Now I turned off lisa (by accident) and guess what! Fam is behaving nicely. I have to admit , that I compiled fam with very basic CFLAGS (-march=athlon -pipe -O3). With big optimizations it will still cause trouble :(. As soon as I turn on lisa, it is a matter of minutes/hours and FAM will start playing up again.
Just to let you know....
Back to top
View user's profile Send private message
Mustard007
Apprentice
Apprentice


Joined: 31 May 2002
Posts: 235
Location: Montreal, Quebec, Canada

PostPosted: Wed Nov 27, 2002 12:06 am    Post subject: Reply with quote

Hi !
I have the same trouble now with KDE 3.1rc3.
I have the last GCC3.2.1, Glibc 2.3.1-r2 and Binutils 2.13.90.0.14.

So fam take 99% of cpu when suddently KDE become non responsive.

Thanks !
Back to top
View user's profile Send private message
Mustard007
Apprentice
Apprentice


Joined: 31 May 2002
Posts: 235
Location: Montreal, Quebec, Canada

PostPosted: Thu Nov 28, 2002 3:24 am    Post subject: Reply with quote

HI !

Fam reach 99% when is the second time i open konqueror.
It's FAM ver. 2.6.9

Imon is activated in the kernel.

What to do now ? Just desactivate FAM ? I want a FAM up and running.

Thanks !
Back to top
View user's profile Send private message
Mustard007
Apprentice
Apprentice


Joined: 31 May 2002
Posts: 235
Location: Montreal, Quebec, Canada

PostPosted: Thu Nov 28, 2002 9:00 pm    Post subject: Reply with quote

Nobody have this trouble now ??

FAM crap out when i start konqueror. After konqueror can't be opened if i don't kill fam who is at 99%.
Back to top
View user's profile Send private message
aardvark
Guru
Guru


Joined: 30 Jun 2002
Posts: 576

PostPosted: Sat Nov 30, 2002 10:10 am    Post subject: Reply with quote

Mustard007 wrote:
Nobody have this trouble now ??

FAM crap out when i start konqueror. After konqueror can't be opened if i don't kill fam who is at 99%.


I have 2 duron CPU + via kt133 setups and i'm starting to think the problem lies in there somewhere.... Your's the same config?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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