LG MS450H MS400H
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.

PipeManagement causing 100% CPU load

3 participantes

Ir abajo

PipeManagement causing 100% CPU load Empty PipeManagement causing 100% CPU load

Mensaje  alfred.fent Dom Oct 17, 2010 5:17 pm

Hi,

first, thanks to everyone who worked on the new firmware / webinterface for the ms450. Really great stuff :-)

However, one question on an observation I made since updating: PipeManagement seems to use 100% of CPU time. Is this as it should be, or is this a bug somewhere?

When I login to the ms450 via telnet and check with "uptime", I get something like

Código:
 16:13:46 up  3:00, load average: 1.00, 1.03, 1.00
When checking with top, I see:

Código:
Mem: 247556K used, 3172K free, 0K shrd, 1048K buff, 155248K cached
CPU:  16% usr  83% sys  0% nic  0% idle  0% io  0% irq  0% sirq
Load average: 1.00 1.03 1.00 4/80 548
  PID  PPID USER    STAT  VSZ %MEM %CPU COMMAND
  83    1 root    R      304  0%  98% /usr/local/etc/PipeManagement/PipeMana
  546  532 root    R    1268  1%  1% top
...

So it really looks like PipeManagement is hogging the CPU...

Is this something to be concerned of? I am using PipeManagement / LGMenu 1.0.3

Thanks and regards


Alfred

alfred.fent

Mensajes : 13
Fecha de inscripción : 17/10/2010

Volver arriba Ir abajo

PipeManagement causing 100% CPU load Empty Re: PipeManagement causing 100% CPU load

Mensaje  vic1972 Dom Oct 17, 2010 7:14 pm

Hi,
thanks for the comments.

I have just checked in my system and seems fine

Mem: 245028K used, 5700K free, 0K shrd, 60300K buff, 81284K cached
CPU: 0% usr 0% sys 0% nic 98% idle 0% io 0% irq 0% sirq
Load average: 0.54 0.18 0.11 3/81 721
PID PPID USER STAT VSZ %MEM %CPU COMMAND
721 672 root R 1268 1% 1% top
14 1 root SW 0 0% 0% [eth0]
84 65 root S < 784m 320% 0% DvdPlayer -s power
671 40 root S 1260 1% 0% telnetd
255 217 root S 784m 320% 0% DvdPlayer -s power
2


Might I ask you a copy of your system file /usr/local/etc/rcS , please
I think you might have some missing input parameters for main process.

regards
vic1972
vic1972

Mensajes : 2260
Fecha de inscripción : 09/12/2009
Edad : 52
Localización : Malaga

Volver arriba Ir abajo

PipeManagement causing 100% CPU load Empty Re: PipeManagement causing 100% CPU load

Mensaje  alfred.fent Dom Oct 17, 2010 8:15 pm

Hi Vic,

vic1972 escribió:
Might I ask you a copy of your system file /usr/local/etc/rcS , please
I think you might have some missing input parameters for main process.
Here we go, rcS file is below.

But what just jumped into my mind: I have a TwonkyVision server running on the machine as well (version 4.4.1.1, registered), started via a start script in /var/hdd/root/custom/etc/init.d/ ... can this interfere with PipeManagement...?

Anyhow, here is rcS

Código:


root@Venus:/usr/local/etc# cat rcS
#!/bin/sh

# Create tty devices
/bin/mknod /dev/tty0 c 0 7
/bin/mknod /dev/tty1 c 1 7
/bin/mknod /dev/tty2 c 2 7
/bin/mknod /dev/tty3 c 3 7
/bin/mknod /dev/tty4 c 4 7

# Some magic stuff - disable this and device will NOT boot anymore
dd if=/Test.fat of=/dev/rd/0
mount -t vfat /dev/rd/0 /mnt/rd
swapon /mnt/rd/swap.img

# Enable tmp for all but temporary files
/bin/chmod 1777 /tmp

# Load SATA driver
/sbin/modprobe sata_mars &

# Load alternative IRCD module
insmod /usr/local/etc/kernel/venus_ir_new.ko

#rm -f /usr/local/etc/dvdplayer/VenusSetup.dat
ln -s /dev/cdroms/cdrom0 /dev/cdrom0
ln -s /dev/cdrom0 /dev/dvd
ln -s /mnt/dvdvr /dev/dvdvr

# This variable tells DvdPlayer the firmware URL for internet updating
export LIVEUPDATE_URL=
DEFAULT_AP_DIR=/usr/local/bin

touch /tmp/command_sender.txt

if [ -f $DEFAULT_AP_DIR/DvdPlayer ] && [ -x $DEFAULT_AP_DIR/DvdPlayer ]; then
        cd $DEFAULT_AP_DIR
        if [ -f $DEFAULT_AP_DIR/RootApp ] && [ -x $DEFAULT_AP_DIR/RootApp ]; then
                echo Running dvdplayer with RootApp
                tail -f /tmp/command_sender.txt | ./RootApp DvdPlayer &
        else
                echo Running dvdplayer
                tail -f /tmp/command_sender.txt | ./DvdPlayer &
        fi
        echo " " >> /tmp/command_sender.txt
else
        /usr/local/etc/dvdplayer/script/run_tail
fi

SIGNATURE=`dd if=/dev/mtdblock/0 bs=8 count=1`
if [ "$SIGNATURE" != "VERONA__" ]; then
        echo This is not the first time booting up. No need to write the magic into flash
        let size="0x"`grep mtd3 /proc/mtd | cut -d " " -f2`
        let size=size-0x120000
        let size=size+130816
        let size=size/4
        MAGIC=`dd if=/dev/mtdblock/3 bs=4 skip=$size count=1`
        if [ "$MAGIC" = "babe" ]; then
                echo This is not the first time booting up. No need to write the magic into flash
        else
                dd if=/usr/local/etc/magic of=/dev/mtdblock/3 bs=4 seek=$size count=1
                echo "This is the first time booting up. Write the magic into flash"
        fi
fi

echo 2 /tmp/hdd/volumes/HDD1/ > /sys/realtek_boards/misc_operations

# Start PipeManagement
/usr/local/etc/PipeManagement/PipeManagement &

# Start all services
/usr/local/etc/starthddservices.sh &

Thanks for the quick reply!


Alfred

alfred.fent

Mensajes : 13
Fecha de inscripción : 17/10/2010

Volver arriba Ir abajo

PipeManagement causing 100% CPU load Empty Re: PipeManagement causing 100% CPU load

Mensaje  vic1972 Lun Oct 18, 2010 8:08 am

ok, found the issue!!
You are calling PM without the needed parameter,

Please, apply, with much care, the next changes in red.
Sorry is not in code section, but, it seems code and the colors does not goes well together Wink
good luck.
Here below in my rcS file


#!/bin/sh

# Create tty devices
/bin/mknod /dev/tty0 c 0 7
/bin/mknod /dev/tty1 c 1 7
/bin/mknod /dev/tty2 c 2 7
/bin/mknod /dev/tty3 c 3 7
/bin/mknod /dev/tty4 c 4 7

# Some magic stuff - disable this and device will NOT boot anymore
dd if=/Test.fat of=/dev/rd/0
mount -t vfat /dev/rd/0 /mnt/rd
swapon /mnt/rd/swap.img

# Enable tmp for all but temporary files
/bin/chmod 1777 /tmp

# Load SATA driver
/sbin/modprobe sata_mars &

# Load alternative IRCD module
insmod /usr/local/etc/kernel/venus_ir_new.ko

#rm -f /usr/local/etc/dvdplayer/VenusSetup.dat
ln -s /dev/cdroms/cdrom0 /dev/cdrom0
ln -s /dev/cdrom0 /dev/dvd
ln -s /mnt/dvdvr /dev/dvdvr

# This variable tells DvdPlayer the firmware URL for internet updating
export LIVEUPDATE_URL=
DEFAULT_AP_DIR=/usr/local/bin

touch /tmp/command_sender.txt
#touch /tmp/appout
mkfifo -m 666 /tmp/appout

if [ -f $DEFAULT_AP_DIR/DvdPlayer ] && [ -x $DEFAULT_AP_DIR/DvdPlayer ]; then
cd $DEFAULT_AP_DIR
if [ -f $DEFAULT_AP_DIR/RootApp ] && [ -x $DEFAULT_AP_DIR/RootApp ]; then
echo Running dvdplayer with RootApp
tail -f /tmp/command_sender.txt | ./RootApp DvdPlayer >> /tmp/appout &
else
echo Running dvdplayer
tail -f /tmp/command_sender.txt | ./DvdPlayer >> /tmp/appout &
fi
echo " " >> /tmp/command_sender.txt
else
/usr/local/etc/dvdplayer/script/run_tail
fi

SIGNATURE=`dd if=/dev/mtdblock/0 bs=8 count=1`
if [ "$SIGNATURE" != "VERONA__" ]; then
echo This is not the first time booting up. No need to write the magic into flash
let size="0x"`grep mtd3 /proc/mtd | cut -d " " -f2`
let size=size-0x120000
let size=size+130816
let size=size/4
MAGIC=`dd if=/dev/mtdblock/3 bs=4 skip=$size count=1`
if [ "$MAGIC" = "babe" ]; then
echo This is not the first time booting up. No need to write the magic into flash
else
dd if=/usr/local/etc/magic of=/dev/mtdblock/3 bs=4 seek=$size count=1
echo "This is the first time booting up. Write the magic into flash"
fi
fi

echo 2 /tmp/hdd/volumes/HDD1/ > /sys/realtek_boards/misc_operations

# Send commands to PipeManagement
#cat /tmp/appout | tee /tmp/teeout | /usr/local/etc/PipeManagement/PipeManagement &
cat /tmp/appout | /usr/local/etc/PipeManagement/PipeManagement &

# Start all services
/usr/local/etc/starthddservices.sh &


vic1972
vic1972

Mensajes : 2260
Fecha de inscripción : 09/12/2009
Edad : 52
Localización : Malaga

Volver arriba Ir abajo

PipeManagement causing 100% CPU load Empty Re: PipeManagement causing 100% CPU load

Mensaje  alfred.fent Lun Oct 18, 2010 11:07 pm

Hi,

vic1972 escribió:ok, found the issue!!
You are calling PM without the needed parameter,

Please, apply, with much care, the next changes in red.
Sorry is not in code section, but, it seems code and the colors does not goes well together Wink
good luck.
Here below in my rcS file
Did so, tried it, works :-)

PipeManagement no longer hogs the CPU.

Thanks for this!

The only question remains why I did not have the correct rcS file, why the parameters were missing. But then, I will have an eye on it when the next update comes, and if it happens again, I know know what to do.

Thanks for the quick and efficient help!


Alfred

alfred.fent

Mensajes : 13
Fecha de inscripción : 17/10/2010

Volver arriba Ir abajo

PipeManagement causing 100% CPU load Empty Re: PipeManagement causing 100% CPU load

Mensaje  vic1972 Mar Oct 19, 2010 9:50 am

Hello Alfred,
you are welcome Wink

Yes, the reason of this wrong file, is that we had a delivery with that wrong file;
this is in process of been fixed; even more we are planning a new version with some new stuff,
and of course, will be fully tested, and this config file will be fine.

Kind regards
Victor
vic1972
vic1972

Mensajes : 2260
Fecha de inscripción : 09/12/2009
Edad : 52
Localización : Malaga

Volver arriba Ir abajo

PipeManagement causing 100% CPU load Empty Re: PipeManagement causing 100% CPU load

Mensaje  Keltek Mar Oct 19, 2010 11:01 am

I'm very sorry about the wrong system script delivered with v103 of PMLGM. I have prepared new v104, which will replace all v100 - v103. The release date will be set after we made some tests about HDD formating (which is currently broken).
Thanks for patience.
Keltek
Keltek

Mensajes : 291
Fecha de inscripción : 10/03/2010
Edad : 47
Localización : Praha - Czech Republic

http://www.fozona.cz/

Volver arriba Ir abajo

PipeManagement causing 100% CPU load Empty Re: PipeManagement causing 100% CPU load

Mensaje  Contenido patrocinado


Contenido patrocinado


Volver arriba Ir abajo

Volver arriba

- Temas similares

 
Permisos de este foro:
No puedes responder a temas en este foro.