Running 4 AA filters at once, why CPU not 100%? >> Salads >> Forum
Forum
  Search   Users   Registration   Entrance
Today: 13.07.2025 - 16:18:21
Pages:  1  2  

Running 4 AA filters at once, why CPU not 100%?

Advertising

CROWD links from forums - 0,9 USD


MessageAuthor

Since I quit using multithreading avisynth, I decided to run 4 separate encodings each with AA to multithread. Here's my problem. My CPU is not running at 100% like it should. Sometimes each encoding runs at 25% (1/4 of my quad core), sometimes it runs at 0-5%. Therefore my CPU is never running at 100%, more like 60%. I'm running 4 of this on a lossless source, 3 of them use the one on my external hard drive (through USB 2.0), and 1 use a copy on my main hard drive. Each encoding has its own filters (yes, I made 4 copies of the same filter) Here are the only problems I can think of: 1) Some encodings are using virtual RAM, and my hard drive can't move fast enough. But I don't see my hard drive light being steady. 2) My external hard drive's USB 2.0 is the bottleneck (running at 30MB/s). My external's light is blinking good, but I don't know how it can be a bottleneck. Yes, the lossless source is 100Mbps, but each encoding is running from 0.01-0.05fps, a 30MB/s connection isn't good enough for 3 encodes? Anybody got a clue as to what is preventing my computer from using 100% of my CPU?

---------------------

diegom6

main-users




Statistics:
Messages: 49
Registration: 11.04.2003
23.09.23 - 06:45:50
Message # 1
RE: Running 4 AA filters at once, why CPU not 100%?

You didn't tell use what you are using to encode. Xvid or X264?

---------------------
i got injectors

b18cls1

main-users




Statistics:
Messages: 348
Registration: 10.29.2003
23.09.23 - 06:54:46
Message # 2
RE: Running 4 AA filters at once, why CPU not 100%?

And, what format is the lossless source in? Uncompressed RGB, x264-lossless, Huffyuv, FFV1, Snow, Lagarith, CorePNG, WARP, ... ?

---------------------

g0mezr

main-users




Statistics:
Messages: 143
Registration: 03.30.2003
23.09.23 - 07:04:04
Message # 3
RE: Running 4 AA filters at once, why CPU not 100%?

x264 lossless

---------------------
Matt 1994 325is Spec3

matt325

main-users




Statistics:
Messages: 255
Registration: 04.13.2001
23.09.23 - 07:13:09
Message # 4
RE: Running 4 AA filters at once, why CPU not 100%?

Yes, your external HDD and the USB connection are the bottlenecks. Even with a local harddisk (XviD TGEDIT preset ~25Mbps), I notice some slowdown with 4 simultaneous encodes. Do make sure that you have enough memory though. Run taskmgr to verify your memory load. Also, you may want to ensure that each encode is using 1 thread only. The Windows kernel is not particularly efficient for multiple multi-thread CPU-intensive programs. From my experience, 4 single-threaded encodes run faster than 4 quad-threaded encodes in my Q6600 machine.

---------------------

hellrotvic

main-users




Statistics:
Messages: 296
Registration: 06.29.2003
23.09.23 - 07:20:25
Message # 5
RE: Running 4 AA filters at once, why CPU not 100%?

I confirmed hard drive bottleneck as well, but why would 4 encodings running at 0.02fps cause a hard drive bottleneck, even if the source is x264 lossless and I'm encoding to x264 lossless?

---------------------
Ed Hardy: Its like wearing a riced out civic.

James Bond

main-users




Statistics:
Messages: 27
Registration: 08.26.2003
23.09.23 - 07:26:53
Message # 6
RE: Running 4 AA filters at once, why CPU not 100%?

you have 3 simultaneous reads of 100 mbps going on your external. and since it appears you're also writing back to it, that's 3 simultaneous writes. you have 6 simultaneous I/O operations working on your external. no HDD can realistically handle all the seeking and transferring such large amounts of data in this fashion well.

---------------------
Bleed Green Club member 2

squirrel

main-users




Statistics:
Messages: 453
Registration: 08.07.2003
23.09.23 - 07:38:07
Message # 7
RE: Running 4 AA filters at once, why CPU not 100%?

I would suggest to you to just use the MT avisynth. There should be nothing wrong with MT("AA()",4,8) (4 threads, 8 overlap, insert your appropriate AA filter as well)

---------------------

theDogger

main-users




Statistics:
Messages: 46
Registration: 01.21.2003
23.09.23 - 07:48:41
Message # 8
RE: Running 4 AA filters at once, why CPU not 100%?

@kemuri 9 It would still be a problem when the hard drive is supposed to read 1 frame per minute for each encode? @the guru There would be something wrong whwn you are on a 32 bit OS. I tried MT, but it would only use 2 cores + x264 or 3 cores in virtualdub before running out of memory.

---------------------

hotdog19d

main-users




Statistics:
Messages: 139
Registration: 12.16.2002
23.09.23 - 07:58:31
Message # 9
RE: Running 4 AA filters at once, why CPU not 100%?

I have a Q6600 + 3GB RAM on a 32bit Vista. The memory problem is because of multithreading, because all I did was write setmtmode (2,x) before everything else. I tried (2,0), ran out of memory. (2,3), barely allowed, no encoding. (2,2), can encode, but speed improvement not as great as running 2 separate encodings.

---------------------

SoonerE39

main-users




Statistics:
Messages: 341
Registration: 03.05.2003
23.09.23 - 08:03:12
Message # 10
RE: Running 4 AA filters at once, why CPU not 100%?
I Missed Another Digidesign Promotion : Previous topicNext topic: Big Mouse Pointer
Pages:  1  2  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants