DAQmx read results 2 ms/s in high CPU usage

I have an application that reads the 32 channels of 2 ms/s analog input signals, at the same time. The actual hardware will be: SMU-8135 Win7, chassis SMU-1071, 2 x SMU-6368 (16 channels). The SMU-two 6368 will provide 32 channels data acquisition.

I don't have the material at the moment, but I've been estimate the processor on the alternative configurations needs, because I have concerns about the use of the CPU to data acquisition high speed. Two alternative configurations are:

(1) SMU-8133 (quad core) WinXP, SMU-1062 q, PXI-6133.

(2) PXI-8106 (dual-core) WinXP, PXI-6133, PXI-1042.

Note: PXI-6133 supports high speed HAVE 2 ms/s, at the same time.

I wrote a simple continuous data acquisition software to allow me to compare the CPU usage. The sample rate and the number of channels are configurable. What I found is:

(1) at low sampling frequency, for example 100 kech. / s, the CPU usage is minimal on both configurations (bicoeur or image), regardless of the number of channels is 1 or 8. The reading of the CPU was about 1-4%

(2) at high sampling frequency, for example 2 ms/s, what is the number of channels used, either 1 or 8, the CPU utilization was 50% for dual core and 25% for the quad core, IE. a full core has been fully utilized.

(3) the passage of the low use of the processor (<5%) to="" high="" cpu="" usage="" (="">45%) increases when the sampling rate is rather steep and shows interesting channel-dependence (note the following has been achieved with a PXI-8106 controller, dual-core).

  • @1 channel, it happened between 950 to 970 k
  • @2 channels, it happened between 470 to 480 k
  • @4 channels, it happened between 230 to 240 k,.
  • @8 channels, it happened between 120 to 130 k.

This model reminds me of buffer length related question but I double checked a sufficient length of the buffer was used. He suggested also, surprising a few traffic jams occurred when the amount of data increases up to certain level.

My question is, is this a problem with this particular card (PXI-6133) or driver DAQmx (9.5.5f4). How the problem is when I'm doing an acquisition of 32 channels?

For your information, I have attached the benchmarking software.

Thank you!

Donghui Yin

I followed this example code (see link below) and used based on events DAQmx, now the excessive CPU utilization problem has been resolved. Playback from the CPU is now less than 10 percent, while it could be 50% (in the case of dual-core) or 25% (case of hearts) at the same sample rate and number of channels.

http://zone.NI.com/DevZone/CDA/EPD/p/ID/5911

Tags: NI Hardware

Similar Questions

  • FIFO DMA read high CPU usage

    Hi al, it's a long!

    I noticed a strange behaviour when I read from a FIFO DMA between FPGA and RT host on my crio (9014 controller and 9104 bottom of basket). The FPGA is writing data to the FIFO 2 points every millisecond and the loop of the RT is the reading of 500 data points each loop of the MS 250 CR period is controlled using the hold until the next ms multiple function.

    Wait until the next use means ms that during the first round, the wait will be not so I gave the FIFO DMA read method a timeout of 750ms to allow data points to accumulate on this first iteration.

    I then ran the VI and it read the data as planned and it was always 0 in the FIFO. Then using the system monitor, I noticed the CPU usage on the RIO and was surprised to see that it was 30% !

    After a lot of puzzle and many other attempts as to set the timeout to zero if delays fair read until here, I've decided are enough data points and then executes a little behind so that there is always a constant number (non-zero) of data points in the FIFO. Now, the VI runs and only use about 3% CPU.

    I thought that in the first case as I read exactly the number of points in the FIFO that I was tripping some kind of voting behavior in the playback feature which has been hogging the cpu.

    So I ran a business with a zero time-out, where I was reading with 0 points of data to the left in the FIFO as in the first case and waited to see if the delay of read but it never does and the CPU usage is normal.

    So what's happening? I'm puzzled!

    Thank you

    Steve.

    Hi Steve,.

    I think I can explain the use processor behavior that you are experiencing:

    Case 1: Loop with nonzero time-out

    -Your code starts with wait a multiple ms: This means that a 0-250 ms timeout occurs (on average 125 ms)

    -Then your code tries to read 500 data points in the DMA FIFO (if 500 points come in every 250 ms). All data cannot be presented yet.

    -If 500 points are not yet ready, polling occurs until they are. During the time of the poll, the CPU usage is high. Finally, the data is read.

    -The next iteration of the loop begins.

    -The code is now expected up to 250 ms after the last function call until the next ms Multiple. Roughly the same amount of data should be available by the end of this expectation as in the last iteration. Therefore, the question about the next FIFO DMA read should be roughly the same, and the CPU usage will remain high.

    Case 2: Loop with zero time-out

    -In your code, immediately after the first call to wait until the next multiple ms, you "synchronize" by reading all the remaining data from the FIFO.

    -In the next iteration of the loop, we can expect the call until the next ms Multiple wait the entire 250 m means that the data DMA FIFO (discount jitter) should be ready. If jitter is low enough, this will result in delays very little of the read DMA FIFO and a low CPU usage.

    I would recommend either using a timed loop and read the exact number of data points available (if your application can handle variable size data sets), or using a while loop as you are and make sure that the loop priorities are defined such that the CPU usage high does not affect critical functionality.

    Thank you for the very good question; I personally really like thinking through these issues! Please let me know if you have any questions that deserve further discussion and have a nice day!

    Kind regards

    Casey Weltzin

    Product Manager, LabVIEW Real-time

    National Instruments

  • High CPU usage by "System outages" and missing keystrokes in IE on all new HP laptop 15-r085nd

    I recently bought a HP15-r085nd (Win 8.1 with Bing), and right out of the box, I encountered this problem:

    After the awakening of the mode (usually after the first time to wake from sleep mode, but always after the second time), the process "System outages" has high utilization of the processor, up to 45%. The laptop then responds very, very slow. In addition, in Internet Explorer (but only in Internet Explorer, it seems!) strikes are missing out.

    I tried the following:

    -Implementation of all the updates of Windows, all McAfee updates and all of the updates from HP Assistent. No results.

    -Reinstall all the drivers, no results. Windows system restore: no result. Factory reset the recovery partition: no result. Then implemented all the updates again: no result.

    -J' tried to use Microsoft Xperf to diagnose the problem: it seems wdf0100.sys to blame for the high CPU usage. (In other words, if I have interpreted the results in the right way).

    -J' then did some troubleshooting with Microsoft Support: they asked me to disable all startup items in the Task Manager and disable all non-Microsoft services in msconfig. The result was that the high CPU usage of "System interrupts" occurred less frequently after the first time out of the way 'sleep', but still she always had after the second time to wake off mode 'sleep'. Uninstallation of McAfee seems to have the same effect, by the way.

    -J' then did some troubleshooting with the store were I bought it. They used a pilot program to install newer versions of the drivers. Also, in vain.

    Then they gave me another laptop of the same model (r085nd). It had exactly the same problems. So I think that all laptops of this model have the same problem! Does anyone know of a similar case with a laptop similar?

    -J' then did some troubleshooting with HP support. We have updated the BIOS (F.24), without result. We have made a few updates to additional drivers on the HP site, no results. We wanted to update the graphic driver Intel HD (sp65598), but we couldn't install it, an error message saying: minimum system requirements were not satisfied.

    I hope that the HP support can arrive at a solution (they wanted to deepen this). If so, I'll promise to post it here, because it affects probably other r085nd HP as well.

    In the mean time, I'd appreciate any suggestions, because I'm totally confused now. Someone at - it ideas? I will answer all the answers!

    I was contacted by HP Support again. After a new series of updates which included some updates everything new on the site of HP is solved the problem with high CPU usage by "system outages"!

    We have done several updates, so I know not that exactly solved the problem, but it is those:

    -New firmware BIOS: version F.33 (my bet would be that is the one that solves the problem)

    -New Intel chipset driver: 1.20 (sp69575.exe)

    -New driver Intel HD Graphics: 1.20 (sp69589.exe): 10.18.10.3958 (this one tried earlier, without solving the problem)

    -New driver Realtek card reader: 1.20Ap3 (sp69610.exe)

    I hope this helps other people with the same problem.

    Thanks to the HP Support team for their help with this problem!

    Moreover, the problem of lack of strikes in Internet Explorer (more use of CPU (any reason), the sequences of keys more are not registered!) still exists! I work around this problem by using Google Chrome. Again, I hope that this issue might get resolved as well! I nevertheless marks it as "Resolved" as the main problem is resolved.

  • Flag 23: Dealing with "high CPU usage." How can I reduce this?

    Hi, I have a HP Pavailion 23 which has been given to me as a gift. Therefore, I don't know. All I know is I'm a player who likes to play games based on Java and possibly watch the videos at the same time, when I try to do the lagg is important. I get notifications saying that Chrome has high CPU usage. I read something about changing my BIOS settings? I'm not sure.

    I would appreciate help on this. I have dealt with the hand of single task Forcers and I find it quite annoying.
    Thank you!!

    Geez... No love. ?

  • problem with high CPU usage audiodg.exe

    While playing the game, I get a message saying that I raised the CPU usage 99% of the base. This is caused by "audiodg.exe. I tried a few bugs that I found online. I was told that they would not work with my computer. I have a Dell XPS15 second-generation i5. Has anyone experience this problem?

    Hello

    1. what you did to solve the problem?

    audiodg.exe [Windows Audio Device Graph Isolation] file hosts the audio engine for Vista and Window s 7.

    All DSP [Digital Signal Processing] and audio processing is done within this file. Suppliers are able to install their own audio effects and DSP in the audio pipeline, which is then processed by audiodg.exe

    In order to correct the high CPU usage, disable audio enhancements addressed by the file audiodg.exe. To disable the audio improvements, follow these steps:
    a. right click on the speaker in the lower corner icon right.

    b. Select the playback device from the menu. A list of devices should appear on the screen.

    c. double-click the device that has a green check mark. The properties for the device windows should open.

    d. click the improvements at the top.

    e. in the list of improvements, uncheck all the, or check Disable all improvements.

    f. click on the OK button to save your changes and close the window.

    g. click OK to close the devices window of reading.

    I would also say that you use resource monitor to monitor the CPU usage.

    Resource monitor is a tool that allows you to analyze the use of the CPU, disk, network, and memory in real time.

    You can use the performance tab in the Manager of tasks to see how the CPU of your computer is used by Windows and other programs running on your computer.

    Reference:

    See use of CPU utilization and other performance information

    http://Windows.Microsoft.com/en-us/Windows7/view-CPU-utilization-and-other-performance-information

  • searchindexer.exe extermemly high CPU usage - days

    Not sure that to do, I rebuilt the index, manually deleted the record of data to index, completely removed, rebooted, and then reinstalled Windows Search from the Add/Remove Windows features, I also chkdsk/f had my records.

    When the Searchindexer.exe uses as much CPU as she can I checked with resource monitor and it is not read to leave or by writing to all files, just chip away cycles CPU.

    Edit: more information

    I created a dump of the searchindexer.exe and its opening with a debugger tool, it is the content

    Microsoft (R) Windows debug 6.2.9200.16384 AMD64 Version
    Copyright (c) Microsoft Corporation. All rights reserved.

    Loading dump file [S:\Tools\SearchIndexer.exe.dmp]
    User Mini with full memory dump file: only application data is available

    Symbol search path is: * invalid *.
    ****************************************************************************
    * Loading of the symbol may be unreliable without a symbol search path.           *
    * Use .symfix to get the debugger to choose a symbol path.                   *
    * After adjusting your path to symbols, use .reload to refresh the locations of symbols. *
    ****************************************************************************
    Executable search path is:
    Windows 8 Version 9200 MP (8 procs) free x 64
    Product: WinNt, suite: SingleUserTS
    By: 6.2.9200.16384 (win8_rtm.120725 - 1247)
    Computer name:
    The debugging session: Sun Nov 4 22:01:24.000 2012 (UTC - 07:00)
    System Uptime: 0 days 10:09:39.102
    Running time: 0 days 0:54:31.000
    .........................................................
    Loading unloaded module list
    ..........
    ERROR: The symbol file is not found.  Defaulted to export symbols ntdll.dll.
    ERROR: The symbol file is not found.  By default for exporting symbols for KERNELBASE.dll -.
    ntdll! NtWaitForSingleObject + 0xa:
    000007fc ' ret 5b172c2a c3

    also, I checked the thread problem in hacker process, here is the stack:

    0, ntoskrnl.exe! SeAccessCheck + 0x1ef
    1, ntoskrnl.exe! KeDelayExecutionThread + 0xc32
    2, ntoskrnl.exe! KeWaitForSingleObject + 0x1cf
    3, ntoskrnl.exe! _misaligned_access + 0 x 809
    4, ntoskrnl.exe! SeAccessCheck + 0 x 280
    5, ntoskrnl.exe! SeAccessCheck + 0x4d1
    6, korwbrkr.dll! DllUnregisterServer + 0x2f48
    7, korwbrkr.dll! DllUnregisterServer + 0x243e
    8, korwbrkr.dll + 0 x 12173
    9, korwbrkr.dll! DllUnregisterServer + 0 x 1696
    10, korwbrkr.dll! DllUnregisterServer + 0x62f9
    11, korwbrkr.dll! DllUnregisterServer + 0 x 6117
    12, korwbrkr.dll! DllUnregisterServer + 0x5db9
    13, korwbrkr.dll! DllUnregisterServer + 0 x 5882
    14, korwbrkr.dll! DllUnregisterServer + 0x6fa0
    15, mssrch.dll! DllGetClassObject + 0x3feba
    16, mssrch.dll + 0 x 19425
    17, kernel32.dll! BaseThreadInitThunk + 0x1a
    18, ntdll.dll. RtlUserThreadStart + 0x21

    I also deleted my Outlook data files and started from scratch with my emails, and makes sure the data folders are not on a concert.

    I installed all the updates that are available for Windows 8 and I also ran sfc/scannow.

    I would be grateful if anyone could offer any help at all, thank you.

    Hi entire,

    disable the service in the Services, restart the computer and then re-enable the service.

    I tried, I completely uninstalled from Windows Add/Remove Features service, rebooted the PC and re - he added, and same deal.

    Anyway I found is what the problem is, it's the korwbrkr.dll, it seems to be related to a Korean dictionary, as if the indexer is you are trying to index something with characters Koreans inside (not aware that I have something like that), and he throws a loop for I renamed the korwbrkr.dll to korwbrkr.bak and it has linked the dictionary file and removed from the search index and I allow the indexer to run all night and it shows that indexing is complete, and I have no more high CPU usage.

    I was dealing with high utilization of the processor of the indexer for weeks, now my system is at peace.

  • RdrCEF high CPU usage

    Hello.
    First of all, sorry for my weak English level.

    A few days ago, I installed Adobe Reader DC on all servers of my Citrix XenDesktop 7.6 farm. All started well, but now I have problems with high CPU usage. I have seen that for each user using reader DC open between 1 and 3 processes with the same name, RdrCEF.exe. This process consumes a lot of memory and sometimes, according to the PDF file, use a large part of the performance issues causing CPU in other sessions on the server user.

    What is the process of RdrCEF? Phy it's open several times by user ? And above all, how can I prevent the use of this process as much CPU?

    I hope someone can help me.
    Thank you.


    Hi all

    We fixed these issues with our last update. I ask you all to update via Help Adobe software-> check the updates...

    Please let us know if you face this or any problem after update.

    -Thank you

    Sunil Soni

  • High CPU usage after upgrading to ESX 4 Update 1

    I just upgraded 2 hosts (IBM HS21 blades) 4 ESX to ESX 4 Update 1, and now I experience high CPU usage.  Before use on each host would turn around 10%, but now after the upgrade, it's about 80 percent on each and now all the virtual machines are running very slow as a result.

    The only change that has been done is that I demoted local readers of hard drives of 500 GB SAS drives to 7 200 RPM 73 GB SAS drives mirrored, 10 000 rpm mirrored and performed a clean installation of ESX 4U1 on each host.  As the VMs 14 are located on a SAN disk array I thought only, it would improve the performance of the hosts.

    Has anyone else had a similar problem or a potential solution?

    See you soon,.

    Josh.

    Seems very strange.

    You have the same number of VM? You have to upgrade the VMware tools?

    There are other changes?

    Local disk is not so important to the overall performance.

    André

  • TimesTen 11 g - direct connection jdbc get very high CPU usage

    Hi guys,.

    When I run my application with a direct connection, I get very high CPU usage... Can help me where can I fix this.
    This is the configuration I have.

    PermSize = 102400
    TempSize = 2457

    More, should one I include the LogBufferSize? How much should I put in it?


    Thank you

    John

    Well, the point to keep in mind is that overall CPU utilization will not higher with direct mode with a local server. In fact, it will be a little weaker because of the much higher efficientcy of direct mode compared to client/server mode.

    The usual rules apply here; You must decide on the maximum use of your machine (normally one trying to limit it to)<=60% for="" the="" most="" optimal="">

    Then you need to see how your workload uses the CPU. with TimesTen there is no blocking operation within the database for a single application thread can, if it does not crash on all external events such as queue of messages, etc. I/O, usually consume a whole CPU core (a large volume of work in the process of transformation). If he asks you to this nature then you want to limit the number of concurrent threads to the smallest reasonable number. Assuming that the machine is running just the application and TimesTen and nothing else and that you wish to leave a carrot free for activity of DB o/s and the background (for example, journal of hot flashes and checkponting) then optimal throughput and response time will be reached with three concurrent threads hitting the database. You can run course with wires more than that but the flow will not be increased (in fact it will decrease somehwat due claim etc.) and response times will certainly increase. For this application profile you certainly wouldn't want to use more than 8 simultaneous maximum son.

    At the other extreme is an application that has multiple concurrent threads, but where each thread spends much of its time waiting for some work to do and runs only makes for a short period of work process then returns to the wait. You can use several more concurrent threads than the hearts of processors for this application profiel. The optimal number will be determined by the specific workload, load CPU it generates and your maximum target of use of the system.

    None of this is really specific TimesTen. The main differences that TimesTen brings all this are:

    1. the workload of database now works on the same machine as the application rather than on a server separate from the DB so that it consumes resources on the application computer.

    2. in general, database interactions will result not in any idle time from a point of view CPU usage (as a consequence of (1) above).

    Ideally, your request will be designed and implemented so that the number of concurrent threads can be controlled as a parameter tunbable to allow you to adjust the workload generated by the application to the specific environment in which it runs.

    Chris

  • Qosmio F60 - alert constantly high CPU usage

    Hello

    About 12 months ago, I bought a Toshiba Qosmio F60 computer laptop 6 GB.

    When exploring using games, facebook etc, I am constantly alert of my Norton informing that there is high CPU usage.

    I have asked around locally and advised to delete Norton because this may be the problem. I'm not eager to do what my subscription is still valid.

    I also learned the other day that this is a common problem with laptops Toshiba using 'Explorer' and that I should use "Mozilla Firefox" instead which would correct the problem.

    I am trying to arrange this.

    Can you please indicate if it is a regular problem with Toshiba laptops and reviewing the options above to try to address this problem.

    It doesn't really seem to my computer, it goes more slowly and when in the Manager tasks, it is constantly fluctuating between 5 and 35%

    I look forward for your reply.

    Thank you

    Melissa

    Hello

    This isn't a problem laptop buddy
    Norton AntiVirus is a good antivirus program, but it uses a lot of resources and my experience locks the CPU.

    I removed this antivirus software and now I m using the avast and Avira Antivir free Antivirus software. Both are freeware software.

    But I still use Internet Explorer. Of course, I also installed the firefox and chrome. All these three browsers are great.

  • Cisco 4506 high CPU usage

    Hello

    Yesterday afternoon, one of our 4506 switch has climbed to 96% CPU usage. I did not the configuration changes. Here is the process with high CPU usage

    40 36630921841089949084 3360% 8.63% 10.56% 11,29% 0 Cat4k Mgmt HiPri

    41 30929587802851505705 1084 36,61 36,53% 36.18% 0 Cat4k Mgmt LoPri

    76 72485492 270422107 268 entry IP 7.91% 7.72% 7,68% 0

    113 35661224 40030007 890 21.91 28.13 29,84% 0 DHCPD receive

    After having HS health platform, what are those high:

    S2w-JobEventSchedule 10.00 7.54 10 8 100 500 9 9 7 36703:06

    Stub-JobEventSchedul 10.00 12.23 10 48 100 500 12 12 9 51004:51

    K2CpuMan review 30,00 29,44 30 99 100 500 33 32 25 37067:58

    K2AccelPacketMan: Tx 10.00 12,15 20 1 100 500 12 12 10 11871:22

    And finally sh platform cpu packet statistics gives me this

    Packets dropped in hardware by CPU Subport (txQueueNotAvail)

    UC Subport TxQueue 0 TxQueue 1 TxQueue 2 TxQueue 3

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

    0 11045 14031 149981 188579662

    1               0               0               0         5919279

    2               0          115638               0               0

    RkiosSysPacketMan:

    Falures allowance package: 0

    Package (common software) buffer allocation falures: 0

    Package Buffer (software ESMP) allocation falures: 0

    Package Buffer (software EOBC) allocation falures: 0

    Falures IOS Packet Wrapper buffer allocation: 0

    Packets dropped in the overall treatment

    Total 5 s 1 min, 5 min 1 hour avg avg avg avg

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

    146521131 0 0 0 0

    Packets dropped in treatment by event CPU

    AVG s Total 5 1 min, 5 min avg avg avg 1 hour event

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

    Input Acl 146002289 0 0 0 0

    SA Miss                             27         0         0         0          0

    Packets dropped in the treatment of priority

    AVG s Total 5 priority 1 min, 5 min avg avg avg 1 hour

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

    Normal 46723179 0 0 0 0

    Medium 518884 0 0 0 0

    High 99797883 0 0 0 0

    Packets dropped in the treatment of the reason

    AVG s Total 5 reason 1 min, 5 min avg avg avg 1 hour

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

    SrcAddrTableFilt 24 0 0 0 0

    L2DstDrop                             7         0         0         0          0

    L2DstDropInAcl 46 0 0 0 0

    NoDstPorts                           32         0         0         0          0

    NoFloodPorts 146521022 0 0 0 0

    The package 16 total queues

    Packets received from the packet queue

    Total 5 s 1 min, 5 min 1 hour avg avg avg avg queue

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

    6279742115 238 247 203 193 ESMP

    L2/L3Control 1320811357 57 48 43 41

    Host of learning 24933459 1 0 0 0

    L3 Fwd Medium 5813 0 0 0 0

    L3 Fwd Low 72923122 0 0 0 0

    L2 Fwd high 11130 0 0 0 0

    L2 Fwd Medium 164016 0 0 0 0

    L2 Fwd 242645408 227 237 193 185 Low

    L3 Rx High                           9         0         0         0          0

    L3 Rx 89296999 439 461 378 364 Low

    Failure of the RPF 129420 0 0 0 0

    Packets dropped packet queue

    Total 5 s 1 min, 5 min 1 hour avg avg avg avg queue

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

    L2/L3Control 18470371 0 0 0 0

    Host of learning 5825831 0 0 0 0

    L2 Fwd Low 405210 0 0 0 0

    L3 Rx Low                         9863         0         0         0          0

    I will be restarting the night switch to see if it helps.

    Thank you.

    Salman

    Hello Salman,

    If DHCP requests are taken over by clients, you will probably want to focus on the limiting of requests DHCP using DHCP snooping.

    ip dhcp snooping limit rate rate

    http://www.Cisco.com/c/en/us/support/docs/switches/catalyst-4000-series-switches/65591-Cat4500-high-CPU.html#high_cpu

    http://www.Cisco.com/c/en/us/TD/docs/switches/LAN/catalyst4500/12-2/25ew/configuration/guide/conf/DHCP.html#wp1073418

    -Ginette

  • NiFpga_ReadFifo high CPU usage

    Hello world

    I'm doing some tests with the card PCI-7811R installed in a PC with OpenSUSE 13.1 and 14 OR RIO. The C API of NI FPGA using, I found some issues related to the use of the CPU when my program is waiting the values to insert into a target for the FIFO DMA elements of 64-bit host.

    It is the FPGA VI that I use for testing. He waits for a signal generated in an another VI (the signal is generated at a rate defined by the user), reads the input values and insert them into the FIFO. My C++ program awaits the FIFO for the requested amount of samples (using the NiFpga_ReadFifoU64 function with infinite time-out) and do a simple change detection. The program runs as expected but it consumes 100% CPU time without worrying about the sampling frequency (tested with values between 10 and 15360 samples per second). I tried to leave only the code that reads the FIFO, but the problem persists.

    Another thing that happens is the oversight body for process and kworker consumes a lot of CPU when the sampling rate and the amount of samples is the same (this causes the NiFpga_ReadFifoU64 function must be run once per second).

    This only happens with this program and the two processes CPU consuption are not constant. They return to normal when the program is stopped.

    I tried to use NiFpga_AcquireFifoWriteElementsU64 instead of NiFpga_ReadFifoU64, but it keeps returning the value-63193 (feature not supported).

    Someone knows how to solve?

    My program code:

    NiFpga_Status status = NiFpga_Initialize();
    If (!.) NiFpga_IsNotError (status))
    {
    < "error:="" "="">< status=""><>
    Return 1;
    }

    NiFpga_Session session;

    status = NiFpga_Open (NiFpga_DAQ_Bitfile, NiFpga_DAQ_Signature,
    "RIO0", NiFpga_OpenAttribute_NoRun, & session);
    If (!.) NiFpga_IsNotError (status))
    {
    < "error:="" "="">< status=""><>
    }

    NiFpga_Reset (session);

    sampling frequency
    status = NiFpga_WriteU32 (session, NiFpga_DAQ_ControlU32_SamplesPerSecond, 2048);
    If (!.) NiFpga_IsNotError (status))
    {
    < "error:="" "="">< status=""><>
    }

    NiFpga_StartFifo (session, NiFpga_DAQ_TargetToHostFifoU64_SamplesFIFO);

    status = NiFpga_Run (session 0).
    If (!.) NiFpga_IsNotError (status))
    {
    < "error:="" "="">< status=""><>
    }

    uint64_t buffer [2048];

    old uint64_t;

    While (true)
    {
    size_t nSamples = 2048;

    status = NiFpga_ReadFifoU64 (session, NiFpga_DAQ_TargetToHostFifoU64_SamplesFIFO,)
    buffer, nSamples, -1, & nSamples);
    If (!.) NiFpga_IsNotError (status))
    {
    < "error:="" "="">< status=""><>
    }
    on the other
    {
    < nsamples;="">
    {
    change detection
    If (buffer [i]! = old)
    printf ("Sample %llx\n", buffer [i]);
    old = buffer [i];
    }
    }

    }

    NiFpga_MergeStatus (& status, NiFpga_Close (session 0));

    / * must be called after all other calls * /.
    NiFpga_MergeStatus (& status, NiFpga_Finalize());
    return 0;

    Thanks for the help

    Luiz Carlos

    Hey luizcvm

    Long story short, it is especially expected with the PCI-7811R behavior you use.

    100% the CPU usage occurs because the NiFpga_ReadFifo is implemented with an expectation well filled for your target. http://digital.NI.com/public.nsf/allkb/583DDFF1829F51C1862575AA007AC792 has additional information and guidelines for creating an application to prevent the indexing of the CPU.

    NiFpga_AcquireFifoWriteElements is not supported on the PCI-7811R.

    I don't really have an explanation for the result of process monitoring and kworker. As I understand it, this only happens when the data are read at the exact same rate as it is generated. Is this correct?

  • Very high CPU usage in svchost during playback of an event in a major newspaper of the events using WMI

    Hello

    I have a very high utilization of the processor in the process 'svchost.exe LocalServiceNetworkRestricted' during playback of an event in an event log in Windows 2008 64 SP02 using local or remote WMI.  The same happens using Wbemtest or C++ WMI code.  The use of WbemTest, "Open forum" (identical to one the GetObject of WMI API) read just one of recent events in the event log:

    Win32_NTLogEvent.logfile = "application", recordNumber = 2615657 (in this case, it was the id since the last event in the very large to the Application event log)

    takes 3/4 seconds consuming thant plus 50% of the monitored computer CPU.  This only occurs when the event log is very large (in my case 1 million records), the event log contains about 10000 events just fine.

    The problem is that I read the complete paper in a remote program and this product CPU usage charge too much CPU to the monitored computer.  I do not read the newspaper of the events one by one, but I'm using WQL queries but I do some GetObjects and the peformance is really terrible.

    Any idea what to change or search?

    Best regards

    Jordi

    Hi jordil,.

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public.

    TechNet Windows Server general Forum

  • AUDIODG. High CPU usage EXE on NEW computer... Please help

    Why is AUDIODG. EXE using so MUCH CPU usage?  I just bought an HP computer brand new a week ago and from day kept getting Norton notifications file audiodg.exe use up to 100% of the cpu.  I googled this searched and searched for help and tried everything suggested as I disabled the improvements in reading, I run the boot, I check to make sure that all THE devices were up to date, etc, etc. Nothing has worked.  I am extremely frustrated by the fact that it's a brand new computer and already problems with windows pre-installed. (I am running windows 7)  Also to note, that I don't receive these alerts cpu high when you listen to music or anything else, what happenes even if I use the desktop themes pre-installed or multitasking with many files opened, etc.  If anyone can help, please advise how can I avoid this file so cpu.  Literally hold it the computer where I have to wait to type or open a file or something else.  So it's very, very annoying! the computer specs are: AMD processor A6 - 3600 APU with Radeon (tm) graphical HD 2.10 GHz, 6.00 (5.48 GB usable) GB memory (RAM), 64-bit, Windows 7 Home Premium operating system.  If anyone can help I'd be really grateful!

    Have you tried to disable the improvements on the playback device?
    Right click on the speaker icon in the notification area, and select playback devices, select your audio device and click Properties. Go to the enhancements tab and check Disable all option improvements.

  • High CPU usage when more than 30 sessions disconnection/connection

    Hi guys,.
    I had this problem for a long time.
    Environment: RAC 10.2.0.5. Oracle enterprise linux 4.8. Application Java B2C with dbcp and oc4j dirver.

    Server type: Dell R815. 48 processors 128 G MEM for each node.

    This is a lot of the web application connects to the database and when one of them is down it will restart soon and try to connect to the database again. Each of them will try to get 50 connections simultaneously initially.

    So when it happens, the sys cpu usage % will pass to more than 70, 80, 90 percent each time.

    BTW, it also happens in more than 30 logout simultaneously.

    Could someone tell me what the problem is?


    Thank you very much.

    Published by: Longfei Wei on February 17, 2011 23:48

    Longfei Wei says:
    Hi guys,.
    I had this problem for a long time.
    Environment: RAC 10.2.0.5. Oracle enterprise linux 4.8. Application Java B2C with dbcp and oc4j dirver.

    Server type: Dell R815. 48 processors 128 G MEM for each node.

    This is a lot of the web application connects to the database and when one of them is down it will restart soon and try to connect to the database again. Each of them will try to get 50 connections simultaneously initially.

    So when it happens, the sys cpu usage % will pass to more than 70, 80, 90 percent each time.

    BTW, it also happens in more than 30 logout simultaneously.

    Could someone tell me what the problem is?

    The task of creating a connection and the session must be serialized, and if you start a number of connection or disconnection is trying at the same time you can end up with a storm of activity on the relevant latches that effects serious knockon. I'm a little surprised that you see that with only 30 to 50 connections, but maybe you have a couple of processors.

    I made some comments to this topic on another thread a while ago: Re: generals to have a high value of the init process (or sessions) parameter

    It is possible that you can configure the application server in order to limit the speed at which he tries to create or cancel the connection - for example, there may be configuration settings to say things like: 'create no more than 5 both', 'just wait a second between disconnections. (Oracle introduced parameters to logoff storms - but maybe they don't work in your version).

    Concerning
    Jonathan Lewis
    http://jonathanlewis.WordPress.com
    http://www.jlcomp.demon.co.UK

    A general reminder on "Forum label / Reward Points": http://forums.oracle.com/forums/ann.jspa?annID=718

    If you mark never questions answers people decide later that it isn't worth trying to answer you because they never know if yes or no, their response has been of no use, or if you even bothered to read it.

    It is also important mark responses that you thought useful - again once it leaves other people know that you appreciate their help, but it also acts as a pointer for other people when they are researching on the same issue, also means that when you mark a bad or wrong the useful answer someone can be invited to tell you (and the rest of the forum) which is so bad or wrong on the answer that you found it useful.

Maybe you are looking for