Multiple processors, or not!!

I have just noticed that Aperture does not make use of more than one processor.
I am unstacking just under 7,000 images and it's taking a while with only one core being used, at 100%!
I know that people have been complaining of how slow Aperture can be, I am sitting here looking at three cores doing nothing!
I've only got another 15,126 stacks to flatten uh!

Some tasks are inherently serial by nature. Consider what it is that you're doing: Unstack stack-A, Unstack stack-B, Unstack stack-C,...
Every one of those operations will have to be written to the database, and during all these writes, the database must protect itself against other write-operations corrupting its internal structure so it locks the database, writes the change, then unlocks the database. Repeat until every stack is unstacked.
Locking the database for a write-operation prevents any other thread (ie: any other CPU) from concurrently accessing the database file (see http://www.sqlite.org/lockingv3.html for the gory details). So, whichever thread is currently doing the unstack operation has control of the database until it is finished. Ergo, no parallelism.
That's not to say it couldn't be done better than it is, but I suspect core-data is the root of the problem. The Core-data framework provides a direct binding between the state of an object in the running application, and its state on disk. Change the value in memory (eg: set the orientation to 'landscape') and that value will magically be stored on-disk in the database.
That strong-coupling of the application to its data-storage is very convenient for the programmer (in my little apps, it's great! but removes some of the flexibility that a larger app may require... For example: in pure SQL, Aperture could batch-up all the changes into one transaction (ie: take the lock, write 7000 changes, unlock the database). That's likely to be significantly faster than taking/releasing the lock each time.
It's actually more complicated than that (Core-data has an intermediary layer to try and reduce the overhead I've been talking about), but I hope the gist of what I'm trying to explain is clear: some things just don't spread over multiple CPU's easily, in fact sometimes having more cores is actually a problem rather than a benefit, but that's a different story...
FWIW, I see quite a lot of parallelism in Aperture - look at import for example, or whenever it renders images...
-=C=-
Mac Pro   Mac OS X (10.4.8)  

Similar Messages

  • Using multiple processors and threads

    Hi there,
    Just a quick question... I am working on an application that is VERY processor intensive. There is no real way to improve this, but I do have access to a multiple processor server.
    Can anyone tell me if Java code can be written to utilise more than one processor? I assume due to the VM, that this is unlikely - and that one must resort to the operating system used on the server, where hopefully the VM can be forced to use more than one processor.
    If this is not possible - has anyone written applications that run across several VMs? Is this possible, and what is the performance like?
    Thanks for any help.
    Nick

    The Java VM will indeed utilize multiple processors. Just create a seperate thread to do your work and it will schedule it. In fact it's way easier than most languages:
    public class MyThreadimplements Runnable {
    public MyThread() {
    try {
    Thread newThread= new Thread(this);
    newThread.setPriority(Thread.MIN_PRIORITY); // see other enumerations to boost priority
    newThread.start();
    } catch(Exception e) {
    System.err.println(e);
    public void run() {
    // do your work here
    }

  • P4M890M Intial bootup giving me error message "Bus Processor is not supported"

    Barebones Desktop Specs;
    P4 631 3Ghz HT 2M 800FSB Sock 775 w/Masscool 8W0141B 3.6Gz Cooling Fan
    MSI P4M890M-L Socket 775 MB w/ 450 watt power - MSI Case w/Extra Cooling
    Hitachi 250GB EIDE HD w/ HD Cooler
    XFX GeForce 6200 Turbo Cache 256MB PCIe
    2 - Ultra 512 PC4200 DDR2 533Mhz
    NEC AD-7170 18X DVD/CD RW
    Samsung CD 52x
    Utra 3.5 Floppy Drive w/ All-In-One USB2.0 Reader
    USB2.0/1394 8pt PCI Card/Comb
    XP Pro SP2
    Trend Micro 07 Internet Security Suite
    PLEASE HELP!! I just purchased this Barebone Computer Kit from Tiger Direct to replace my wife's laptop which is dying. I finally have all the parts to assemble it and start it up. When I purchased the kit "Online" it was sold as a "All Systems Tested and Fully Compatable System".
    I was having problems cold booting this computer for the first time. I have now resolved that issue and found the source of the problem in the bootup process itself. Evidently all is not well and fully tested and compatable as Tiger Direct says it is. As the computer boots up for the very first time, you have only 3-4 minutes to tell it weather or not to proceede with installing the following message. I have taken the time to copy the message exactly as it is displayed on my computer screen. I of course will be calling Tiger Direct's Tech Support Line. I have found them to be only as good as the person who answers the phone. Being I'm green anyhow and won't know weather or not I'm being feed a line of BS or not, I thought I'd get some other opinions from folks who understand Computers far better than I. I'm simply firefighter who is trying to buy his wife a decent computer without spending an arm and a leg. In fact I thought this thing would arrive already assembeld and all I needed to do was add an OS and some extras, like a decent video card. I never intended to  build this thing from scratch, I could have purchased a simular spec'd Gateway complete with OS preinstalled with a warrenty for less money!!! I'm Not Happy and Not a Techie!! But looking on the bright side, I sure am learning a lot about computers! If I can get it to work without too many more problems I will be very happy.
    When the computer first boots, here is the message that appears on the screen;
    AMIBIOS C 2005 American Megatrends Inc
    BIOs Date 8/25/06 24:17:51 Ver A7255VMS V1.0
    Intel Pentium 4 CPU 3.00GHz Speed 266x12 =3200
    Hyper Threading Enabled
    DDR2 Speed 533MZ
    A 200 MHz System Bus Processor is Installed
    This Processor Is Not Supported On This Board And Will Run At A Reduced Processor Clock Speed. System Performance Will Be Impacted.
    Do You Wish To Continue To Boot @ 266MHz
    System Bus And Reduce Processor Speed (Y/N)
    Press (Y) To Continue (N) to Shut Down
    If I press the Y the computer will run and not shut off in 3 minutes. I let it run last night to see what would happen?? Would it burst into flames?? Would it shut down?? Well after a hour it shut down. Is that normal? Is it some kind of saftey mechinism?
    It will start right up again, but it was almost 5am so I shut er down and went to bed. I'm waiting for some advice before I move forward from here. Please respond ASAP! I'd like to get this thing done so I can move on to the next 'Honey Do' project.
    This is my first computer I have ever built so I am green to all this. I dont really understand what all this means and what kind of an impact will this have on my new computer??
    1. What does this mean, my CPU is not compataible to this board?
    2. If I keep it and install it, will it cause the computer to be unstable latter on?
    3. How much of a negitive impact will this have on my computer?
    4. How much will it slow it down?
    5. What would you do if you were in my shoes? Replace the CPU for the right one or upgrade to a better one or keep it??
    6. If I do upgrade, what would be a better choice and not break the bank??

    :no-idea: Thanks Dry Heat,
    I went to the link that you provided. Here is the latest problem...... I can get the computer to run longer than 3 minutes by pressing the Y key when asked during the initial boot-up. After that the computer will not move off that window I described in my 1st post, no matter what I do. I tried restarting the computer and pressed the Delete key to see if that would work and the F1 and F2 keys during the initial boot up, the Bios Window would appear but the computer would shut down, there was nothing I could do to get past this, let alone go on-line to download something. How would I get on-line without an operating system to update the Bios? Remember I am Green and have no idea what the heck I'm doing, let alone what is the real problem here. Its like fighting fire blindfolded! Please help and be detailed on how I should procede. Thanks! Woody

  • Why does my Photoshop PS2 open on my Mac Book Pro OS 10.6.8 Intel Core 2 Processor but not on my just purchased Mac Book Pro OS 10.7.3? On my new machine I get a message saying "You can't open Photoshop CS2 because Power PC applications are no longer sup

    ?  Why does my Photoshop PS2 open on my Mac Book Pro OS 10.6.8 Intel Core 2 Processor but not on my just purchased Mac Book Pro OS 10.7.3? On my new machine I get a message saying "You can't open Photoshop CS2 because Power PC applications are no longer supported". I don't have a Power PC on either machine and this App does run on the older machine with an Intel processor. benrusy

    This is not new.  The fact that Mac OS no longer supports PowerPC applications starting with OS X Lion has been known for over a year now.  You'll need to upgrade to the latest version of Photoshop

  • Image Processor does not start through Bridge CS5

    Image Processor does not start through Bridge CS5, it starts only PS and nothing happen. I do not know, how to repair it.

    Most likely you do not have the startup files checked.
    In Bridge go to edit/preferences/startup scripts.  Make sure you have a check mark for Bridge and Photoshop.  Without that they can't talk to each other.

  • WL 10.3.3 Console org.apache.xalan.processor.TransformerFactoryImpl not fou

    Getting the following error:
    An error occurred during activation of changes, please see the log for details.
    [Management:141191]The prepare phase of the configuration update failed with an exception:
    Provider org.apache.xalan.processor.TransformerFactoryImpl not found
    Note: we have the FOP added to the domain as a shared library with the following libraries:
    avalon-framework-cvs-20020806.jar
    batik.jar
    fop.jar
    xalan-2.4.1.jar
    xercesImpl-2.2.1.jar
    xml-apis.jar
    Note: Also, the shared libraries are not displaying referencing applications

    Getting the following error:
    An error occurred during activation of changes, please see the log for details.
    [Management:141191]The prepare phase of the configuration update failed with an exception:
    Provider org.apache.xalan.processor.TransformerFactoryImpl not found
    Note: we have the FOP added to the domain as a shared library with the following libraries:
    avalon-framework-cvs-20020806.jar
    batik.jar
    fop.jar
    xalan-2.4.1.jar
    xercesImpl-2.2.1.jar
    xml-apis.jar
    Note: Also, the shared libraries are not displaying referencing applications

  • Itunes - how do i select multiple line items not in sequence ?

    itunes - how do i select multiple line items not in sequence ?

    Hold down the Command key and click each in succession.
    To extend the selection across items that ARE contiguous, use the Shift key.

  • Safari is now opening with multiple windows. Not sure what changed in my settings. I prefer Safari to open with a single homepage, which I've always set to Yahoo. Any help?

    Safari is has begun opening with multiple windows. Not sure how this change happened. I prefer Safari to open with a single homepage, which I've always set to Yahoo. Any suggestions?

    Quit the application. Force quit if necessary.
    Relaunch it by holding down the shift key and clicking its icon in the Dock. From the menu bar, select
    Safari ▹ Preferences... ▹ General ▹ New windows open with: Homepage

  • SQL 2005 v9.0.2047 (SP1) - The query processor could not produce a query plan

    Hi Everyone:
    *Before* I actually call up Microsoft SQL Customer Support Services and ask them, I wanted to ping other people to see if you have ever ran into this exact error
    "Internal Query Processor Error: The query processor could not produce a query plan. For more information, contact Customer Support Services."
    I would have searched the forums myself, but at this moment in time, search is broken :(
    If anyone has run into this error before, what conditions would exist that this could happen?  That is, if I can sniff this out with suggestions from the community, I would be happy to do so. 
    It is an oddity because if I alter a couple subqueries in the where clause [ i.e., where tab.Col = (select val from tab2 where id='122') ]to not have subqueries [hand coded values], then the t-sql result is fine.  It's not as if subqueries are oddities... I've used them when appropriate.
    fwiw - Not a newbie t-sql guy.  ISV working almost daily with t-sql since MS SQL 2000.  I have never seen this message before...at least I don't recall ever seeing it.
    Thanks in advance for other suggested examination paths.

    This code also produces the error... the text is from an incident a while ago that I reported to microsoft.
    --I just found a way to break the query engine. Looks like the SQL Server team missed something. I was generating phony data for test cases, by the way.
    --Bad code:
    DECLARE @t_Asset TABLE
    (Asset_Id INT)
    INSERT INTO @t_Asset (Asset_Id) VALUES (1)
    INSERT INTO @t_Asset (Asset_Id) VALUES (2)
    INSERT INTO @t_Asset (Asset_Id) VALUES (3)
    DECLARE @Record_id INT
    ,@File_id NVARCHAR(MAX)
    ,@SKP_Cust_id NVARCHAR(MAX)
    ,@Unique_Barcode NVARCHAR(MAX)
    SELECT @Record_Id = (SELECT TOP 1 Asset_Id FROM @t_Asset)
    , @file_id = (SELECT LEFT(REPLACE(CAST(NEWID() AS NVARCHAR(50)), '-', ''), 10))
    ,@Unique_Barcode=(SELECT LEFT(REPLACE(CAST(NEWID() AS NVARCHAR(50)), '-', ''), 15))
    go
    --Msg 8624, Level 16, State 116, Line 12
    --Internal Query Processor Error: The query processor could not produce a query plan. For more information, contact Customer Support Services.
    --Code that doesn’t fry the optimizing engine:
    DECLARE @t_Asset TABLE
    (Asset_Id INT)
    INSERT INTO @t_Asset (Asset_Id) VALUES (1)
    INSERT INTO @t_Asset (Asset_Id) VALUES (2)
    INSERT INTO @t_Asset (Asset_Id) VALUES (3)
    DECLARE @Record_id INT
    ,@File_id NVARCHAR(MAX)
    ,@SKP_Cust_id NVARCHAR(MAX)
    ,@Unique_Barcode NVARCHAR(MAX)
    SELECT @Record_Id = (SELECT TOP 1 Asset_Id FROM @t_Asset)
    SELECT @file_id = (SELECT LEFT(REPLACE(CAST(NEWID() AS NVARCHAR(50)), '-', ''), 10))
    SELECT @Unique_Barcode=(SELECT LEFT(REPLACE(CAST(NEWID() AS NVARCHAR(50)), '-', ''), 15))

  • Multiple delete is not working.

    Hi,
    Multiple delete is not working. Please find my backend bean code. Please let me know the issue in my code.
    Table:
    <af:table value="#{bindings.CmProcessParamValueView13.collectionModel}"
    var="row"
    rows="#{bindings.CmProcessParamValueView13.rangeSize}"
    emptyText="#{bindings.CmProcessParamValueView13.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.CmProcessParamValueView13.rangeSize}"
    rowBandingInterval="1"
    selectedRowKeys="#{bindings.CmProcessParamValueView13.collectionModel.selectedRow}"
    selectionListener="#{bindings.CmProcessParamValueView13.collectionModel.makeCurrent}"
    rowSelection="multiple"
    binding="#{backingBeanScope.backing_app_RunCalcPage.t1}"
    id="t1" width="720px" inlineStyle="height:140px;" partialTriggers="cb6 cb3"
    filterVisible="true" filterModel="#{bindings.CmProcessParamValueView13.queryDescriptor}" >
    <af:column sortProperty="ParamValue7"
    sortable="true" width="690"
    headerText="Comm Type"
    rowHeader="unstyled"
    id="c2" align="left" filterable="true">
    <af:outputText value="#{row.ParamValue7}"
    id="ot4"/>
    </af:column>
    </af:table>
    Backing Bean Delete Code:
    RowKeySet rowKeySet = (RowKeySet)this.t1.getSelectedRowKeys();
    CollectionModel cm = (CollectionModel)this.t1.getValue();
    System.out.println("RowKeySet is: "+ rowKeySet.getSize());
    for (Object facesTreeRowKey : rowKeySet) {
    cm.setRowKey(facesTreeRowKey);
    JUCtrlHierNodeBinding rowData =
    (JUCtrlHierNodeBinding)cm.getRowData();
    System.out.println("RowData is : "+rowData.getAttribute("ParamValue7"));
    rowData.getRow().remove();
    Thanks.

    Issue is resolved...
    Solution is,
    Remove selectionListener and selectedKey attributes from the table.
    Delete code is:
    DCBindingContainer dcBindings =
    (DCBindingContainer)getBindings();
    DCIteratorBinding dcIterator =
    dcBindings.findIteratorBinding("Iterator...");
    RowSetIterator rs = dcIterator.getRowSetIterator();
    RowKeySet rks = this.t1.getSelectedRowKeys();
    Iterator rksIter = rks.iterator();
    while (rksIter.hasNext()) {
    List l = (List) rksIter.next();
    Key key = (Key)l.get(0);
    Row row = rs.getRow(key);
    if(row != null)
    row.remove();
    }

  • Hi, is there any option how I can edit duration of multiple video clips (not stills) in iMovie 11, lets say if I want them 2 seconds long? Many thanks for any advice... Tom

    Hi, is there any option how I can edit duration of multiple video clips (not stills) in iMovie 11, lets say if I want them 2 seconds long? Many thanks for any advice... Tom

    Yes.
    iMovie 11 tutorials:
    http://help.apple.com/imovie/
    http://www.apple.com/ilife/tutorials/#imovie
    and also these:
    http://www.kenstone.net/fcp_homepage/imovie_09_stone.html
    http://www.kenstone.net/fcp_homepage/imovie_09_stone.html#interface

  • Another Premiere Elements 10 " processor is  not supported" error message

    I have the combination DVD, with Photoshop & Premiere Elements 10 bought just a few months ago. It came bundled with a digital camera.
    Elements 10 will not instal because "the processor is not supported with this package"
    My PC has a Pentium 4, 3Ghz proc, 2Gb ram and runs XP Pro SP3. which as far as I can tell meets the requirements. Idid see that a dual core Proc. is required to edit HD and AVH?? but my interst is only still in DV and I've assumed that the dual core is not therefore required.
    I spent hours researching the problem yesterday and saw a solution to " follow PE 11 trial download route and choose PS 10" but no such option exists now. (presumably to get a version that would get around this)
    Is there a solution to this please ?

    A Pentium 4 is definitely able to run the program, box. It's just not going to run it very well -- particularly if you've only got 2 gigs of RAM and a video card with less than 1 gig of memory. You may be able to get by if your processor is a Hyper Threading Pentium.
    You also should have 100 or so gigs of free space on your hard drive. (The best rule of thumb is to take Adobe's recommended minimums and double them -- and that's the MINIMUM power you should have.)
    So I'm not sure why you're getting that message.
    Have you manually gone to Windows Update and downloaded all of the non-critical updates? They often include important drivers and patches that don't download automatically.
    If downloading those updates don't do it, I'd recommend you contact Adobe Tech Support.

  • Image Processor will not save files in CS5

    I use image processor to run actions on a bulk group of image files, always worked fine in CS4.  Now with CS5 the files have the action applied but Image Processor will not close the files.... that becomes a problem when I am working with a couple hundred images!  It seems to save the files fine, into the Jpeg or Tiff folder it creates during the process... it just won't close the files and give me the error: "Sorry, I could not process the following files:" 
    I am sure this is a bug, since it works fine in CS4 and the process is exactly the same in CS5.  Does anyone else have this problem?  Is there anyway to fix this?  It's a pain to go back to CS4 just to use the image processor.
    Thanks!
    Chris Kilkus
    www.kilkus.com

    I looked into it more and found the problem is that when the action runs Photoshop for some reason won't let the file save from the file menu (it's grayed out)... only "Save as" which obviously doesn't work in an action.  Strangely, the file does actually get saved in the folder that is created by Image Processor, but since "save" is grayed out, it won't CLOSE the file. There is no reason for it to gray out "save", when I play the action one file at a time it doesn't do this, only when I use Image Processor in CS5. I really don't understand why it's doing this, I think it's just a bug that needs to get fixed.  Don't have the same problem in CS4.

  • Does PS CS6 take better advantage of multiple processors than PS CS5?

    Hi,
    According to the article on this Adobe Support page, it says: There is a law of diminishing returns with multiple processors- The more processors you use, the less you get from each additional processor. Therefore, Photoshop isn't necessarily four times as fast if you have four microprocessors. 
    My question is, is this part of PS improved in this new version? If anyone knows about this, your response would be greatly appreciated!
    Thank you in advance.
    Jung

    newalchemist wrote:
    So, do you mean that new PS can take "full" advantage of more than four threads now?
    Good question.  This was with a simple Image size (from 25,000 pixels square to 15,000 pixels square)
    Six cores, but only only six threads, maxing out at about 70%.  I helped itself to lots of RAM though.

  • Hyper-V cannot be installed: The processor does not have the required virtualization capabilities.

    I am trying to use Visual Studio 2013 with Windows Phone SDK 8.0 on Windows 8.1 Enterprise running as a guest in a VirtualBox virtual machine hosted from Windows 7 Ultimate.  The Windows Phone emulator in Visual Studio will not work.  The
    guest Hardware Virtualization settings for VT-x and Nested Paging are selected.  The BIOS setting for Virtualization is enabled.  However, in the guest Windows 8.1 features settings, the "Hyper-V Platform" option is disabled and indicates
    that the "Hyper-V cannot be installed:  The processor does not have the required virtualization capabilities."  However, I checked on my processor which is an Intel (Clarksfield), I7-740QM 1.73 and it supports Hyper-V,
    SLAT/EPT.  My BIOS has only a single option for enabling Virtualization but none of the other SLAT/EPT, VMX, XD options.  I am lost here.  Is there a solution?  Do I need to use Visual Studio 2013 and Windows Phone SDK 8.0 directly
    on a Windows 8.1 host and not through a virtual machine?

    You can't run Hyper-V inside a VirtualBox VM (nested virtualization).  It doesn't pass through the necessary CPU requirements.
    The only virtualization solution that allows for nested VMs is VMware's Workstation and vSphere Hypervisor (ESXi). VMware Player is their free product, you may be able to use it, I've not tried player, but have nested Hyper-V in both Workstation and ESXi.
    Follow the instructions here for setting up VMware Player, you need to set the VM settings and .vmx file for it to work.
    http://www.virtuallyghetto.com/2011/07/how-to-enable-support-for-nested-64bit.html
    http://www.rickygao.com/enable-hyper-v-under-vmware-workstation-for-your-lab/

Maybe you are looking for

  • How to create Transaction Variant

    Hi all, I have a requirement like this I need to create a transaction variant for the table CEPCT, for the transaction SE16 and want to disable or invisible CREATE and CHANGE options in that Can any one help me out in this requirement Regards Sriniva

  • Help: Quartz Composer - Changing the Video Input Source to Firewire/Camera

    I'm creating a Quartz composition, although can't seem to be able to select anything other than the built-in iSight camera of my mac. I have a camera attached via Firewire, and can record from it into Quicktime, for example, although can't get it as

  • Data Adapter Configuration Wizard and custom datatype's

    I was wondering if there is planned support for GUI wizards similar to the Microsoft wizards that appear when you add a data adapter to a form at design time. These wizards appear when you use the Microsoft OracleClient, OLEDB or SQL Server client. T

  • What to do with completed songs

    Once I have a completed song in Logic how do I burn it to disc? What is the best way to do this?

  • Removing glasses from face

    Hi.  I'm going to have to remove the glasses from several images of people's faces. Any recommendations on the best way to accomplish this in Photoshop CS6? Don't know if clone stamp tool would work best, or trying to select the glasses and using hea