| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 54224 | 2005-02-07 05:27:00 | Linux - asking programs to pull horns in a bit | personthingy (1670) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 322348 | 2005-02-07 05:27:00 | I'm running a not too grunty laptop on FC3 The problem program is spamassasin. It works great, i mean real great, It saves me getting a problem about all my financial and physical inadequacies by picking up 95% of the email based on selling me bigger watches etc etc. but when its reviewing the email to decide if i should read it or i should, everything else grinds to a halt. :badpc: Its the only process that seems to do this. Even when i let Chill take control of my machine and make custom kernels with, this background process did not interfere with the direct user processes - I was impressed! How do i ask spamassasin to pull its horns in and sort the spam from the mail using only SPARE CPU power? :D |
personthingy (1670) | ||
| 322349 | 2005-02-07 05:44:00 | Not to certaing exactly how you do this but you can tell most programs what cpu priority to run at. AFAIK its something to do with a setting called nice. I'm sure chill or jen would have a better idea. :thumbs: |
Sam I Am (1679) | ||
| 322350 | 2005-02-07 05:45:00 | ps aux | grep sendmail AFAIK spamassasin is part of Sendmail, right? So take the PID and: renice 19 12345 Where 12345 is the Proccess ID (PID). This will give it the Ncie value of 19 which is the lowest priority. This must be done as root. Cheers Chill. |
Chilling_Silence (9) | ||
| 322351 | 2005-02-07 06:41:00 | AFAIK spamassasin is part of Sendmail, right? I dont think it is. i couldn't find spamassasin in the process table, but just for the hell of it i killed sendmail, and then succesfully sent myself an email (? but it worked!) i then sent myself another email from a fake address the used the word "viagra" 50 times. The latter email arrived in my spam bin. From this i conclude that kmail does not need sendmail to send or receive, (and therefore sendmail may as well not be started on my laptop) and that spamassasin is working, and part of something else, possably kmail itself? :nerd: |
personthingy (1670) | ||
| 322352 | 2005-02-07 08:02:00 | Sendmail is a SMTP server - so you don't need it running on your machine unless you are setting up local LAN mail. | johnd (85) | ||
| 322353 | 2005-02-07 09:15:00 | How do i ask spamassasin to pull its horns in and sort the spam from the mail using only SPARE CPU power? :D Use "at" (see man at) . This is a scheduler much like cron, except that at can be configured to run a job only under a specified load, which is 1 . 5 by default . So by default, at will attempt to run a command (script, file etc) at a certain time and load, and will wait until the load drops under 1 . 5 . |
vinref (6194) | ||
| 322354 | 2005-02-07 09:23:00 | Sendmail is a SMTP server - so you don't need it running on your machine unless you are setting up local LAN mail. Actually, I use it on my single-user machine to send out mail using Mutt, and mail. I am sure lots of mail clients such as Kmail incorporate their own SMTP engines, so sendmail is redundant if you run KDE. |
vinref (6194) | ||
| 322355 | 2005-02-07 09:59:00 | If you have spamasassian checking your email regulary through out the day, then renice would not be suitable. It only adjusts the timing of when the process can run and does not limit the actual cpu % share. So bascially you can get it to run when the system is quiet, but it won't stop it taken up all the cpu cycles still. If you are only downloading your emails a couple times a day, then renice might suit you as it will run when you are not busy using your machine. | Jen (38) | ||
| 322356 | 2005-02-07 10:15:00 | If you have spamasassian checking your email regulary through out the day, then renice would not be suitable. Sometimes my machine is off. Otherwise my private addresses are checked every minute, and my public ones, where most of the spam comes in, are checked every half hour. So i figure that makes renice unsuitable? :D I will have a look at "at", as that seems to be the closest to what i need, ie: something that lets spamassasin run, but just stops it dominating the limited power of my machine while it does so. Footnote: maybe "at" isn't the answer! [root@flaptop ~]# at Garbled time :annoyed: |
personthingy (1670) | ||
| 322357 | 2005-02-07 10:42:00 | Sometimes my machine is off. Otherwise my private addresses are checked every minute, and my public ones, where most of the spam comes in, are checked every half hour. So i figure that makes renice unsuitable? :D I will have a look at "at", as that seems to be the closest to what i need, ie: something that lets spamassasin run, but just stops it dominating the limited power of my machine while it does so. Footnote: maybe "at" isn't the answer! [root@flaptop ~]# at Garbled time :annoyed: Are you getting mail from a hosted service? That is, not just a subscriber account with an ISP, but from hosted space with a web hosting company? You could set up spamassassin there and save your machine from having to do it. |
vinref (6194) | ||
| 1 2 | |||||