6.50B12 high CPU and download stall issue

This is the place to help test and discuss Version 6 Beta releases.

6.50B12 high CPU and download stall issue

Postby Quade » Sat Jun 29, 2013 10:34 am

Dthor on IRC found me a test case where certain files can stall the download and cause high CPU usage.

The workaround till I fix this, is to go into "Really Advanced" in the server options for each server and click "Body Mode" then restart Newsbin.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44981
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: 6.50B12 high CPU and download stall issue

Postby olog_hai » Wed Jul 03, 2013 7:16 pm

RAM usage gets up there as well. Maybe something isn't getting cleaned up?

Image
olog_hai
Occasional Contributor
Occasional Contributor
 
Posts: 16
Joined: Wed Aug 25, 2010 9:56 am

Registered Newsbin User since: 02/01/10

Re: 6.50B12 high CPU and download stall issue

Postby itimpi » Wed Jul 03, 2013 7:25 pm

olog_hai wrote:RAM usage gets up there as well. Maybe something isn't getting cleaned up?

Image

RAM usage can easily get that high if you have a lot of items loaded. What is the size of your download list? Also do you have headers for any large multi-media groups loaded?
The Newsbin Online documentation
The Usenettools for tutorials, useful information and links
User avatar
itimpi
Elite NewsBin User
Elite NewsBin User
 
Posts: 12607
Joined: Sat Mar 16, 2002 7:11 am
Location: UK

Registered Newsbin User since: 03/28/03

Re: 6.50B12 high CPU and download stall issue

Postby olog_hai » Wed Jul 03, 2013 9:11 pm

The download list was empty. NB was minimized and had open only the groups list (90 groups and 3 GOGs) tab and not actively doing anything. That's why I think that it's not doing a great job of releasing memory. It doesn't bother me because I have 12 gigs, but I've noticed that some applications that consume lots of RAM become slow and unstable eventually, and then you have to relaunch them.
olog_hai
Occasional Contributor
Occasional Contributor
 
Posts: 16
Joined: Wed Aug 25, 2010 9:56 am

Registered Newsbin User since: 02/01/10

Re: 6.50B12 high CPU and download stall issue

Postby DThor » Wed Jul 03, 2013 9:40 pm

If you had group tabs open - that gobbles up the memory. Try closing them. The download queue contents doesn't in and of itself really take up much memory unless you have a massive amount of stuff there. Another thing to check is any anti-virus - some of them snoop on everything you download and hang on to it. When you quit Newsbin, does the memory free up?

DT
V6 Troubleshooting FAQ . V6 docs. Usenet info at Usenet Tools. Thanks!
User avatar
DThor
Elite NewsBin User
Elite NewsBin User
 
Posts: 5943
Joined: Mon Jul 01, 2002 9:50 am

Registered Newsbin User since: 04/01/03

Re: 6.50B12 high CPU and download stall issue

Postby olog_hai » Wed Jul 03, 2013 11:06 pm

I had no groups tabs open, just the Groups List. No sense in closing that. For anti-virus I have only MSE, which I think is lightweight and unobtrusive. The memory is indeed released when I close Newsbin. Honestly, this a minor issue for me, but one I thought worth a brief mention.

I do have more serious problems, especially with how Newsbin handles dropped groups from one of my providers as well as the fact that it keeps showing me some old stuff with "hide old" enabled. In Agent if you delete or mark something as read, you never ever see it again while the filter is enabled. Also it would be great if I could assign newsgroups to specific servers or vice versa; Agent has this feature. But anyway, this paragraph is off the topic of this particular thread.
olog_hai
Occasional Contributor
Occasional Contributor
 
Posts: 16
Joined: Wed Aug 25, 2010 9:56 am

Registered Newsbin User since: 02/01/10

Re: 6.50B12 high CPU and download stall issue

Postby Quade » Wed Jul 03, 2013 11:42 pm

How many cache entries are you showing down in the status bar? Cache blocks are probably 500-800K each when they get used.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44981
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: 6.50B12 high CPU and download stall issue

Postby possamai » Fri Jul 12, 2013 3:33 pm

Not sure if this is the 'stall issue' you mentioned but when a file is downloaded it stops downloading for a while, then continues.
It's during the par2 scan. See for yourself:

[20:30:18] DEBUG FileIOThread - AssembleFile: release info + screenshots + password can be found at: www.bd25.org - free registration - "Something_very_legal.part112.rar" yEnc
[20:30:39] DEBUG AutoPAR: ScanFile Blocks:18 File is Perfect: Something_very_legal.part112.rar

If you look at the timestamps.. Between those times the downloadspeed is zero.
User avatar
possamai
Seasoned User
Seasoned User
 
Posts: 297
Joined: Tue Jun 24, 2003 11:27 pm

Registered Newsbin User since: 04/01/03

Re: 6.50B12 high CPU and download stall issue

Postby Quade » Fri Jul 12, 2013 4:07 pm

There's an option in the performance options to prevent download during repair and unrar. Do you have it set?
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44981
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: 6.50B12 high CPU and download stall issue

Postby possamai » Fri Jul 12, 2013 4:10 pm

Nope, and that just pauses during repair/unrar..
this pauses between every file while autopar checks if the file checksum is okay.

The files are 259,2MB and 683 records.. so maybe that's where it goes wrong. too much too handle
User avatar
possamai
Seasoned User
Seasoned User
 
Posts: 297
Joined: Tue Jun 24, 2003 11:27 pm

Registered Newsbin User since: 04/01/03

Re: 6.50B12 high CPU and download stall issue

Postby Quade » Fri Jul 12, 2013 5:10 pm

[20:30:18] DEBUG FileIOThread - AssembleFile: release info + screenshots + password can be found at: www.bd25.org - free registration - "Something_very_legal.part112.rar" yEnc
[20:30:39] DEBUG AutoPAR: ScanFile Blocks:18 File is Perfect: Something_very_legal.part112.rar


Doesn't prevent or indicate it's not downloading. It just means on your setup, it takes 20 seconds to scan this file (which is pretty slow). In the mean time the download data should be feeding into the cache blocks.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44981
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: 6.50B12 high CPU and download stall issue

Postby possamai » Fri Jul 12, 2013 5:43 pm

Odd... I could see the network load dropping and raising at the same time as those messages appeared in the log..
Maybe something weird in the files or something.. I'll download something else, see if it happens.

And yes it's slow.. highly fragmented disk and the size of the files won't help either..
User avatar
possamai
Seasoned User
Seasoned User
 
Posts: 297
Joined: Tue Jun 24, 2003 11:27 pm

Registered Newsbin User since: 04/01/03

Re: 6.50B12 high CPU and download stall issue

Postby Kent_Diego » Mon Oct 13, 2014 11:11 pm

I have 6.53 and been seeing this a lot lately. I never saw this in 6.51. Thought is was Astraweb until I saw this thread and checked the CPU usage. The groups will not update and one CPU core will run newsbin 100% forever until I close Newsbin. I will try the work-around. Please post when a new version fixes this.
User avatar
Kent_Diego
Occasional Contributor
Occasional Contributor
 
Posts: 35
Joined: Sun Jul 02, 2006 1:22 pm

Registered Newsbin User since: 07/12/13

Re: 6.50B12 high CPU and download stall issue

Postby Quade » Tue Oct 14, 2014 12:51 am

Are you downloading headers? There are a couple groups, one is a.b.frogs, that simply breaks Newsbin. You should probably delete that group if you sub to it. Basically the posters are posting using completely random subjects with no file information so, there's no way to actually download files from this group using headers anymore. Only with NZB files.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44981
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: 6.50B12 high CPU and download stall issue

Postby Kent_Diego » Tue Oct 14, 2014 1:09 am

Quade wrote:Are you downloading headers? There are a couple groups, one is a.b.frogs, that simply breaks Newsbin. You should probably delete that group if you sub to it. Basically the posters are posting using completely random subjects with no file information so, there's no way to actually download files from this group using headers anymore. Only with NZB files.

Thanks for replying. New updates: With 6.5.3 and with latest beta I saw 100% CPU usage on one core for newsbinpro64.exe. I even rebooted computer and started NB without doing anything else. Just starting NB caused high CPU usage. I let it run for a long time and after an hour or so the CPU went to zero. Now when I double click a group the new headers show. It looks like it is all fixed. I guess NB had some important house keeping activities it needed to perform before I could do anything and it took a long, long time to get straightened out. The download bodies setting did not help.

Thanks, again.
User avatar
Kent_Diego
Occasional Contributor
Occasional Contributor
 
Posts: 35
Joined: Sun Jul 02, 2006 1:22 pm

Registered Newsbin User since: 07/12/13

Re: 6.50B12 high CPU and download stall issue

Postby Quade » Tue Oct 14, 2014 7:58 am

Newsbin downloads headers as quickly as it can to disk, then imports them with a single thread into the database. What you download headers, you'll get CPU load till the import finishes. If you download all headers from a new group for instance, this can take awhile.

If you look down where it says "Cache" there's a number in parens (XX). This number is the number of blocks of headers it's importing.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44981
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97


Return to Newsbin Version 6 Beta Support

Who is online

Users browsing this forum: No registered users and 2 guests