PDA

View Full Version : How to stop printer-related stuff to save memory?



RoofCat
08-02-2005, 13:24
Hello?

I am looking for a commands in post-boot (custom software 1.9.2.7 CR3c) to stop and unload printer related software from router memory. The reason is to save some RAM for rcamd together with dropbear client for remote tunneling. I've already removed usbaudio related stuff, but looks like it is not enough - box is a bit unstable and I receive Out of memory messages when I logged in.

Can anybody help me with commands?

TIA and regards,
Roofcat

majx
08-02-2005, 14:05
did you already remove video aond audio modules within your linux-tree?
cd broadcom/src/linux/linux
make menuconfig
cd ../../gateway
make && make install

Oleg
08-02-2005, 15:36
Hello?

I am looking for a commands in post-boot (custom software 1.9.2.7 CR3c) to stop and unload printer related software from router memory. The reason is to save some RAM for rcamd together with dropbear client for remote tunneling. I've already removed usbaudio related stuff, but looks like it is not enough - box is a bit unstable and I receive Out of memory messages when I logged in.

Can anybody help me with commands?

TIA and regards,
Roofcat

Well, try something like this for audio:


killall waveservermain
rmmod audio
rmmod soundcore


For printing stuff


killall p910nd
killall lpd
killall infosvr
rmmod printer
rmmod parport
rmmod parport_splink
rmmod lp


Please check that last lines does not cause device reboot during rmmod. BTW, rcamd as well as any other streaming apps will cause out of memory most of the time (they need memory for storing pictures in transit). Try adding swap space. Buying wl500g deluxe is also a good idea.

RoofCat
08-02-2005, 22:19
did you already remove video aond audio modules within your linux-tree?
cd broadcom/src/linux/linux
make menuconfig
cd ../../gateway
make && make install

No. I do not have build environment installed (honestly, I even have no Linux partition on my notebook :confused:

So killing unnecessary apps and removing modules is my only way for now.

Thanks anyway.

Regards,
Roofcat

RoofCat
08-02-2005, 22:37
Well, try something like this for audio:


killall waveservermain
rmmod audio
rmmod soundcore

Already done that. It works, adding smthg like 150k free RAM.


For printing stuff


killall p910nd
killall lpd
killall infosvr
rmmod printer
rmmod parport
rmmod parport_splink
rmmod lp


Please check that last lines does not cause device reboot during rmmod. BTW, rcamd as well as any other streaming apps will cause out of memory most of the time (they need memory for storing pictures in transit). Try adding swap space. Buying wl500g deluxe is also a good idea.

Thanks, I'll try this. I've tried already to kill lpd (successfully) but I still have two processes named p9101 or similar (sorry, I do not have access to the box at the moment) which I cannot kill (they survive normal kill and killall). I'll try suggested way.

Concerning your comment about streaming - is there a way to configure rcamd to work in "jpeg-only" mode, without streaming? My goal is to configure the router to act like security cam with e-mail alerts on motion, and I will not use activeX streaming mode.

And one more question - is there a way to use SMTP AUTH mode while sending motion alert email by router?

Thanks again
regards,
Roofcat

majx
09-02-2005, 01:13
X)
150k "RAM" - and the rest? why don't you try to recompile your src to get less?

XX)i would even think of:
every alert mail is getting encrypted for a special recipient by gnupg.

You already have your mail-addr and gnuPG key ? (the public one?)
(gnupg not yet implemented in the sources?)

poll for getting gnupg inside? -> !!!

poll for make your router send automatic alert-mails to your mail-address?
!!!
"normal" config over http (hey, asuy guys :) ) typing in the receivers mail-addr and the sending ones
-> 2 times my own mail addr + my gnupg key?

Oleg
09-02-2005, 10:57
Concerning your comment about streaming - is there a way to configure rcamd to work in "jpeg-only" mode, without streaming? My goal is to configure the router to act like security cam with e-mail alerts on motion, and I will not use activeX streaming mode.

well, just do not use this mode at all. I mean do not open webcam pages.



And one more question - is there a way to use SMTP AUTH mode while sending motion alert email by router?

It's unlikely, at least with current app.

britnet
16-02-2005, 12:25
Hello,

how can i kill printer stuff after a reboot?
Should I try to type the CODE in the post-boot?





killall p910nd
killall lpd
killall infosvr
rmmod printer
rmmod parport
rmmod parport_splink
rmmod lp




Please check that last lines does not cause device reboot during rmmod.

hugo
16-02-2005, 12:38
And one more question - is there a way to use SMTP AUTH mode while sending motion alert email by router?

Thanks again
regards,
Roofcat


Your best option is to use palantir (look for it in the forum), and maybe set up a script using ssmtp. It will do smtp auth.

Please get it from my mails tools (http://wl500g.info/showthread.php?t=1369&highlight=mail+tools)

RoofCat
16-02-2005, 15:22
Your best option is to use palantir (look for it in the forum), and maybe set up a script using ssmtp. It will do smtp auth.

Please get it from my mails tools (http://wl500g.info/showthread.php?t=1369&highlight=mail+tools)

Thanks, Hugo, I've already using mvc - not palantir cause I need only jpeg capture, not video stream. I'll try smtp auth from mailtools to make delivery.

Regards,
Roofcat