Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

mysqld and mythbackend dying

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


merle.reine at lindows

Jan 17, 2003, 9:41 AM

Post #1 of 12 (3488 views)
Permalink
mysqld and mythbackend dying

I installed the latest cvs and once I start mysql and then mythbackend,
I run: top
to check the processes. Mythbackend takes up 87% of the CPU and 78% of
the memory and eventually crashes and kills mysqld. Has anyone seen
this or have an explanation? I can start mysql and run mythepg,
mythweb, mythmusic, etc but not mythbackend.

I have a 1.4 ghz AMD with 256 meg ram and open BSD.

Any help would be appreciated.


Merle


bigman1 at alltel

Jan 17, 2003, 10:30 AM

Post #2 of 12 (3359 views)
Permalink
Re: mysqld and mythbackend dying [In reply to]

Hello Merle,

Friday, January 17, 2003, 10:41:01 AM, you wrote:

MR> I have a 1.4 ghz AMD with 256 meg ram and open BSD.
Are you running this under linux emulation or something? I imagine you
would have a hard time getting it running on openbsd without
video4linux support.
MR> Any help would be appreciated.


MR> Merle



--
Best regards,
Wayne mailto:bigman1 [at] alltel


ijr at po

Jan 17, 2003, 10:32 AM

Post #3 of 12 (3338 views)
Permalink
Re: mysqld and mythbackend dying [In reply to]

On Friday 17 January 2003 11:41 am, Merle Reine wrote:
> I installed the latest cvs and once I start mysql and then mythbackend,
> I run: top
> to check the processes. Mythbackend takes up 87% of the CPU and 78% of
> the memory and eventually crashes and kills mysqld. Has anyone seen
> this or have an explanation? I can start mysql and run mythepg,
> mythweb, mythmusic, etc but not mythbackend.
>
> I have a 1.4 ghz AMD with 256 meg ram and open BSD.
>
> Any help would be appreciated.

Wipe your database tables and rerun setup.

Isaac


merle.reine at lindows

Jan 17, 2003, 11:23 AM

Post #4 of 12 (3359 views)
Permalink
Re: mysqld and mythbackend dying [In reply to]

I installed mythtv on a debian machine and I still get the same
problem. I reinstalled mysql, completely new database and mythbackend
takes up nearly 90% of the cpu then crashes.

Anyone got any ideas? I even recompiled mythtv and everything works
except the mythbackend.



On Fri, 2003-01-17 at 09:32, Isaac Richards wrote:

> On Friday 17 January 2003 11:41 am, Merle Reine wrote:
> > I installed the latest cvs and once I start mysql and then mythbackend,
> > I run: top
> > to check the processes. Mythbackend takes up 87% of the CPU and 78% of
> > the memory and eventually crashes and kills mysqld. Has anyone seen
> > this or have an explanation? I can start mysql and run mythepg,
> > mythweb, mythmusic, etc but not mythbackend.
> >
> > I have a 1.4 ghz AMD with 256 meg ram and open BSD.
> >
> > Any help would be appreciated.
>
> Wipe your database tables and rerun setup.
>
> Isaac
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev [at] snowman
> http://www.snowman.net/mailman/listinfo/mythtv-dev

--
Merle Reine <merle.reine [at] lindows>
Lindows.com Hardware Certification


merle.reine at lindows

Jan 17, 2003, 11:45 AM

Post #5 of 12 (3342 views)
Permalink
Re: mysqld and mythbackend dying [In reply to]

I will try. What is gdb?

On Fri, 2003-01-17 at 10:58, Isaac Richards wrote:

> On Friday 17 January 2003 01:23 pm, Merle Reine wrote:
> > I installed mythtv on a debian machine and I still get the same
> > problem. I reinstalled mysql, completely new database and mythbackend
> > takes up nearly 90% of the cpu then crashes.
> >
> > Anyone got any ideas? I even recompiled mythtv and everything works
> > except the mythbackend.
>
> Run it in gdb? Do some debugging yourself? I dunno.
>
> Isaac
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev [at] snowman
> http://www.snowman.net/mailman/listinfo/mythtv-dev

--
Merle Reine <merle.reine [at] lindows>
Lindows.com Hardware Certification


ijr at po

Jan 17, 2003, 11:58 AM

Post #6 of 12 (3352 views)
Permalink
Re: mysqld and mythbackend dying [In reply to]

On Friday 17 January 2003 01:23 pm, Merle Reine wrote:
> I installed mythtv on a debian machine and I still get the same
> problem. I reinstalled mysql, completely new database and mythbackend
> takes up nearly 90% of the cpu then crashes.
>
> Anyone got any ideas? I even recompiled mythtv and everything works
> except the mythbackend.

Run it in gdb? Do some debugging yourself? I dunno.

Isaac


merle.reine at lindows

Jan 17, 2003, 12:29 PM

Post #7 of 12 (3361 views)
Permalink
Re: mysqld and mythbackend dying [In reply to]

It was working at one time. Seems intermittent. I just got
mythbackend to work and then when I try to run mythfrontend, I get:

connecting to localhost:6543
could not connect to mythbackend

On Fri, 2003-01-17 at 11:43, Brent Hills wrote:

> > On Friday 17 January 2003 11:41 am, Merle Reine wrote:
> >> I installed the latest cvs and once I start mysql and then
> >> mythbackend, I run: top
> >> to check the processes. Mythbackend takes up 87% of the CPU and 78%
> >> of the memory and eventually crashes and kills mysqld. Has anyone
> >> seen this or have an explanation? I can start mysql and run mythepg,
> >> mythweb, mythmusic, etc but not mythbackend.
> >>
> >> I have a 1.4 ghz AMD with 256 meg ram and open BSD.
> >>
> >> Any help would be appreciated.
> >
> > Wipe your database tables and rerun setup.
> >
> > Isaac
>
> Was your myth installation ever working on your system?
>
> If it was and you haven't rebooted in a while you might want to check the
> shared memory on your system. If myth crashes it can leave shared memory
> segments around that accumulate over time using up resources. Eventually
> it will effect other applications including myth.
>
> You can check the shared memory segments with the command.
> ipcs -m
>
> ipcrm with the id of the shared memory segment lets you remove it.
>
> If you run the command ipcs -m before starting myth and after starting
> myth you can recognize the size of shared memory myth uses on your system
> and identify it from any other applications which may also use shared
> memory. Shared memory segments with no processes attached is generally
> safe to remove but identifying those segments that are left from myth and
> unattached is safer.
>
> This may not be your problem but its another item you can check.
>
> Brent Hills
>
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev [at] snowman
> http://www.snowman.net/mailman/listinfo/mythtv-dev

--
Merle Reine <merle.reine [at] lindows>
Lindows.com Hardware Certification


bhills at openshores

Jan 17, 2003, 12:43 PM

Post #8 of 12 (3353 views)
Permalink
Re: mysqld and mythbackend dying [In reply to]

> On Friday 17 January 2003 11:41 am, Merle Reine wrote:
>> I installed the latest cvs and once I start mysql and then
>> mythbackend, I run: top
>> to check the processes. Mythbackend takes up 87% of the CPU and 78%
>> of the memory and eventually crashes and kills mysqld. Has anyone
>> seen this or have an explanation? I can start mysql and run mythepg,
>> mythweb, mythmusic, etc but not mythbackend.
>>
>> I have a 1.4 ghz AMD with 256 meg ram and open BSD.
>>
>> Any help would be appreciated.
>
> Wipe your database tables and rerun setup.
>
> Isaac

Was your myth installation ever working on your system?

If it was and you haven't rebooted in a while you might want to check the
shared memory on your system. If myth crashes it can leave shared memory
segments around that accumulate over time using up resources. Eventually
it will effect other applications including myth.

You can check the shared memory segments with the command.
ipcs -m

ipcrm with the id of the shared memory segment lets you remove it.

If you run the command ipcs -m before starting myth and after starting
myth you can recognize the size of shared memory myth uses on your system
and identify it from any other applications which may also use shared
memory. Shared memory segments with no processes attached is generally
safe to remove but identifying those segments that are left from myth and
unattached is safer.

This may not be your problem but its another item you can check.

Brent Hills


cedarmckay at mac

Jan 17, 2003, 12:55 PM

Post #9 of 12 (3362 views)
Permalink
Re: mysqld and mythbackend dying [In reply to]

Merle Reine wrote:

> I will try. What is gdb?


as usual www.mythtv.org/docs/ specifically,
http://www.mythtv.org/docs/mythtv-HOWTO-17.html#ss17.3


merle.reine at lindows

Jan 17, 2003, 2:52 PM

Post #10 of 12 (3310 views)
Permalink
Re: mysqld and mythbackend dying [In reply to]

Thank you, this appeared to fix it. I very much appreciate your
assistance.

On Fri, 2003-01-17 at 11:43, Brent Hills wrote:

> > On Friday 17 January 2003 11:41 am, Merle Reine wrote:
> >> I installed the latest cvs and once I start mysql and then
> >> mythbackend, I run: top
> >> to check the processes. Mythbackend takes up 87% of the CPU and 78%
> >> of the memory and eventually crashes and kills mysqld. Has anyone
> >> seen this or have an explanation? I can start mysql and run mythepg,
> >> mythweb, mythmusic, etc but not mythbackend.
> >>
> >> I have a 1.4 ghz AMD with 256 meg ram and open BSD.
> >>
> >> Any help would be appreciated.
> >
> > Wipe your database tables and rerun setup.
> >
> > Isaac
>
> Was your myth installation ever working on your system?
>
> If it was and you haven't rebooted in a while you might want to check the
> shared memory on your system. If myth crashes it can leave shared memory
> segments around that accumulate over time using up resources. Eventually
> it will effect other applications including myth.
>
> You can check the shared memory segments with the command.
> ipcs -m
>
> ipcrm with the id of the shared memory segment lets you remove it.
>
> If you run the command ipcs -m before starting myth and after starting
> myth you can recognize the size of shared memory myth uses on your system
> and identify it from any other applications which may also use shared
> memory. Shared memory segments with no processes attached is generally
> safe to remove but identifying those segments that are left from myth and
> unattached is safer.
>
> This may not be your problem but its another item you can check.
>
> Brent Hills
>
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev [at] snowman
> http://www.snowman.net/mailman/listinfo/mythtv-dev

--
Merle Reine <merle.reine [at] lindows>
Lindows.com Hardware Certification


bjm at LVCM

Jan 17, 2003, 3:20 PM

Post #11 of 12 (3347 views)
Permalink
Re: mysqld and mythbackend dying [In reply to]

Merle Reine wrote:
> I installed the latest cvs and once I start mysql and then mythbackend,
> I run: top
> to check the processes. Mythbackend takes up 87% of the CPU and 78% of
> the memory and eventually crashes and kills mysqld. Has anyone seen
> this or have an explanation? I can start mysql and run mythepg,
> mythweb, mythmusic, etc but not mythbackend.
>
> I have a 1.4 ghz AMD with 256 meg ram and open BSD.
>
> Any help would be appreciated.

Hi, Merle. The problem is that you've run out of swap space.

When there is no more room to page out, some programs die
unexpectedly. MythTV is kind of a memory hog right now so
this may contribute to behavior that you would not otherwise
see.

If you run "top" you may see on the "Swap:" line that "free"
is a small fraction of "total". Note, do not worry about
"Mem: ... free" as memory uses the 'bachelor's sink' algorithm
where you don't need to wash a dish until there are no clean
ones left. Mem filling up is normal but swap filling is a
problem.

The amount of swap space should be greater than the amount
of memory. Some old rules of thumb are 1.5x to 2.5x. If
possible, add more swap on a separate spindle from the
current swap area. BSD 'interlaces' swap so you actually
get better performance with two swap partitions, one each
on two different disks. Two swap areas on the same disk
causes the disk heads to thrash and degrade performance.

256 meg memory should be enough but could be borderline.
I would see ongoing page outs when recording with two
tuners and 256MB but one recording was fine. Either way,
a lot of swap space was used.

I hope this helps,

-- bjm


bjm at lvcm

Jan 17, 2003, 3:56 PM

Post #12 of 12 (3349 views)
Permalink
Re: mysqld and mythbackend dying [In reply to]

Brent Hills wrote:
...
> Was your myth installation ever working on your system?
>
> If it was and you haven't rebooted in a while you might want to check the
> shared memory on your system. If myth crashes it can leave shared memory
> segments around that accumulate over time using up resources. Eventually
> it will effect other applications including myth.
>
> You can check the shared memory segments with the command.
> ipcs -m

Thanks! On a remote system where I've been testing failures,
I had a couple hundred of these ;-). I take it an "nattach"
of "0" is a good indicator that the segment is unused.

-- bjm

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.