Author Topic: Please Remember To Fix The Outbound Email Scanning Problem  (Read 49527 times)

0 Members and 1 Guest are viewing this topic.

Offline alanrf

  • Avast Evangelist
  • Massive Poster
  • ***
  • Posts: 3870
  • Just an avast user
Re: Please Remember To Fix The Outbound Email Scanning Problem
« Reply #30 on: May 23, 2005, 09:30:08 PM »
Hmmm ... just in line with what I suggested was happening in the original thread Harvey created on this issue. 

Thanks for being upfront about the issue - it is appreciated.

Offline alanrf

  • Avast Evangelist
  • Massive Poster
  • ***
  • Posts: 3870
  • Just an avast user
Re: Please Remember To Fix The Outbound Email Scanning Problem
« Reply #31 on: May 23, 2005, 09:35:58 PM »
Just one more thing, can someone check the difference in the creation of the temporary cache file between Mozilla code and OE? 

Unless there is some oddity in the Mozilla code, it should not take 8 seconds to cache the same amount of data from Mozilla as it takes less than 2 seconds from OE.

hgratt

  • Guest
Re: Please Remember To Fix The Outbound Email Scanning Problem
« Reply #32 on: May 23, 2005, 10:05:56 PM »
;D

There's really no rocket science here. I changed only two things:

1. increased the chunk size (the size of data sent at once) from 8KB to 128KB
2. removed the sleep command after sending each chunk.

That is, there were artificial sleeps (delays) implemented in the code - I don't know why yet (I'll have to ask the developer responsible for this code tomorrow).
It's possible they were there for a reason - but I'd say the main reason was to prevent excessive CPU loads for the ashMaiSv.exe process...

Thanks
Vlk

I updated the program and it now works on subsequent reboots. Looks like we're making progress. Again, the speed averages around 90-92KBS, but is quite erratic.

Based on your explanation as to what you did, it sure seems that many people should see this issue - not just alanrf and myself.

Anyway, at least the area of concern seems to be identified. Maybe some further optimization will "smooth" out the upload speed.

Thanks,
Harvey

Offline Vlk

  • Avast CEO
  • Serious Graphoman
  • *
  • Posts: 11658
  • Please don't send me IM's. Email only. Thx.
    • ALWIL Software
Re: Please Remember To Fix The Outbound Email Scanning Problem
« Reply #33 on: May 23, 2005, 10:10:15 PM »
Erratic? Or just uneven?
If at first you don't succeed, then skydiving's not for you.

hgratt

  • Guest
Re: Please Remember To Fix The Outbound Email Scanning Problem
« Reply #34 on: May 23, 2005, 10:23:45 PM »
Erratic? Or just uneven?

Uneven. Speed bounces back and forth from lows of 30KBS to highs of 135KBS.

Harvey

Offline Vlk

  • Avast CEO
  • Serious Graphoman
  • *
  • Posts: 11658
  • Please don't send me IM's. Email only. Thx.
    • ALWIL Software
Re: Please Remember To Fix The Outbound Email Scanning Problem
« Reply #35 on: May 23, 2005, 10:33:44 PM »
Isn't it a bit strange? I mean, considering that the maximum speed of your line is < 100KB/s (physically), isn't it a problem in the way NetPerSec does the measurements?
I was using LanSpeed2 to check the speed and I didn't see any anomalies...

Thanks
Vlk
If at first you don't succeed, then skydiving's not for you.

hgratt

  • Guest
Re: Please Remember To Fix The Outbound Email Scanning Problem
« Reply #36 on: May 23, 2005, 10:45:01 PM »
Isn't it a bit strange? I mean, considering that the maximum speed of your line is < 100KB/s (physically), isn't it a problem in the way NetPerSec does the measurements?
I was using LanSpeed2 to check the speed and I didn't see any anomalies...

Thanks
Vlk

I think only the average speed is constrained.

Do you have a copy of LanSpeed2 that I could try?

Harvey

Offline Vlk

  • Avast CEO
  • Serious Graphoman
  • *
  • Posts: 11658
  • Please don't send me IM's. Email only. Thx.
    • ALWIL Software
If at first you don't succeed, then skydiving's not for you.

hgratt

  • Guest
Re: Please Remember To Fix The Outbound Email Scanning Problem
« Reply #38 on: May 23, 2005, 11:04:24 PM »
http://www.tucows.com/get/259303_100243

O.K., I set the interval for 1 sec (same as NetPerSec) and the line graphs show the same uneven behavior and same average speed.


BTW, I really appreciate all the time and effort your putting into this. Hopefully, this will benefit everyone.

Harvey

Offline Vlk

  • Avast CEO
  • Serious Graphoman
  • *
  • Posts: 11658
  • Please don't send me IM's. Email only. Thx.
    • ALWIL Software
Re: Please Remember To Fix The Outbound Email Scanning Problem
« Reply #39 on: May 23, 2005, 11:12:07 PM »
I'd say it's because ashMaiSv.exe is yielding to other processes for a short while after sending each chunk of data (128KB)...
I don't think there's a problem.
If at first you don't succeed, then skydiving's not for you.

Offline alanrf

  • Avast Evangelist
  • Massive Poster
  • ***
  • Posts: 3870
  • Just an avast user
Re: Please Remember To Fix The Outbound Email Scanning Problem
« Reply #40 on: May 23, 2005, 11:18:57 PM »
Quote
Based on your explanation as to what you did, it sure seems that many people should see this issue - not just alanrf and myself.

Harvey,

I think the important word is see it.

It looks to me as though the base Mozilla code has adopted a
transmission method that delivers mail to the network faster than some
other products, most notably those of Microsoft.

I suspect that everyone using Mozilla based mailers is being affected by
this issue.  However, the Microsoft products are much more widely used than the Mozilla based ones.

Another part of "seeing" it is the interface.

In Outlook Express as soon as you hit send the message window disappears (therefore it must have been sent).  There is a little icon on the main OE window showing mail is being transmitted but I doubt that many people are going to time it.

I don't know about all Mozilla mailers but Thunderbird has a progress
bar showing the progress of the message delivery.  I do know a number of
Thunderbird users who have turned off the outbound scanning of e-mail
because the change in behaviour of the progress bar caused by Avast
disturbed them.  People expect progress bars to move fairly consistently
to 100% and then say "done".  When the bar moves rapidly to 100% and
then sits there it generally causes disquiet. (This has disturbed users of Avast on the receiving side of other applications too - notably with NNTP).

Finally I suspect most concern comes when folks are waiting for something
to arrive to them rather than when they are sending and do not expect to
see the final event (the delivery of the message to the person(s)
addressed).

Just my thoughts.

Anyway, you were the one who noticed this issue and raised it and I think your efforts will benefit all of us.  Well spotted!

Oh, and didn't I tell you the Avast team would make sure you didn't need
to go back to NAV?

Alan


hgratt

  • Guest
Re: Please Remember To Fix The Outbound Email Scanning Problem
« Reply #41 on: May 23, 2005, 11:20:44 PM »
I'd say it's because ashMaiSv.exe is yielding to other processes for a short while after sending each chunk of data (128KB)...
I don't think there's a problem.

I just tried task manager in order to give ashMaiSv.exe high priority to test out what you said, but I was denied access (I can set priorities on other processes).

Anyway to get access so I can fool around with the priority?

Harvey

Offline Vlk

  • Avast CEO
  • Serious Graphoman
  • *
  • Posts: 11658
  • Please don't send me IM's. Email only. Thx.
    • ALWIL Software
Re: Please Remember To Fix The Outbound Email Scanning Problem
« Reply #42 on: May 23, 2005, 11:24:54 PM »
Increasing the process priority wouldn't help anyway (it is explicitly yielding).
I'll do some more tweaking tomorrow and will let you know (tomorrow)...

Thanks
 
If at first you don't succeed, then skydiving's not for you.

hgratt

  • Guest
Re: Please Remember To Fix The Outbound Email Scanning Problem
« Reply #43 on: May 23, 2005, 11:28:57 PM »
Increasing the process priority wouldn't help anyway (it is explicitly yielding).
I'll do some more tweaking tomorrow and will let you know (tomorrow)...

Thanks
 

Thanks, Vlk.

Again, I appreciate all you are doing.

Harvey

Offline alanrf

  • Avast Evangelist
  • Massive Poster
  • ***
  • Posts: 3870
  • Just an avast user
Re: Please Remember To Fix The Outbound Email Scanning Problem
« Reply #44 on: May 23, 2005, 11:34:51 PM »
Harvey,

just for future reference to get around the "access denied" problem should you need it.

Choose a time (hh:mm) a couple of minutes in the future.

Open a command prompt window, type and enter:

at hh:mm /interactive taskmgr

At the time you chose hh:mm a taskmgr window will open and should allow you to change the priority if you wish.