Numbers 09 version 2.1 pauses having high CPU useage
I was running numbers 09 original version on 10.6.8 OS without any problems. I updated to OS X 10.10.1 and numbers stated having problems. It would start running slow only after about 30 seconds of data input. the CPU usage would jump up to 97-98% for the numbers program. So I then updated numbers(still on 09) to 2.1 with all the lasted patches. Still having problems. I started a brand new spreadsheet with 4 column and no functions simple data: date, 2 text fields, and a cost field in dollars. Same slow problems. I can take 30 seconds just to input 1 field. I will type ahead 1-2 columns at a time, and slowly the computer will fill in the fields from the keyboard buffer.
My system is a MacBook Pro, 13" early 2011 (version 8.1) came with 4GB ram and I still have 85GB left on my hard drive. I notice that numbers was having to swap with nothing else loaded. so I updated my system have 8GB of new ram. Numbers no longer swaps, but still runs slow. Right after I tested this I put in a 480GB SSD drive in the system. The system is like greased lighting now, EXCEPT WITH NUMBERS. Number is still exhibiting the same symptoms. After starting numbers and adding data to just one cell, Activity monitor shows.
CPU 90%
Context switches 455367
Faults 96270
Machine calls 872945
Unix System Calls: 87191
During the time it took me to enter the 5 pieces of previous data, numbers used up 31.14 seconds of CPU time sitting idle after only 1 data field entry.
Thanks,
Bob
Thank you for this very helpful tip, Hiroto and Jerrold.
Bob, I was having the exact same problem. I came here to post a question for help. I would be typing along in a cell, then suddenly Numbers would have a huge lag/delay. I would finish typing about 5 seconds before the text was showing up on screen
I even went to Genius bar thinking something was wrong. What did they do? Reinstalled Yosemite, saw the Numbers problem still persisting and said, well its probably time to update to the latest version (3.5.2).
All I needed was to be on the most recent version before the newest iWork suite came out. Thank you so much for the helpful link. After installing it, Numbers 2.3 is cruising along on my trusty 2010 8gb MBP.
Thank you again!
- Chris
Similar Messages
-
I have an Intel Xserve running 10.4.11
I followed Alex's tutorials some months back and upgraded clamav, amavisd and spamassassin.
All has been working well and I have been pleased with the performance.
However I decided approx 6 weeks ago to move from using clamscan to clamd.
On and off I have been getting exceptionally high CPU useage from clamd which requires me to kill off the clamd process as everything almost grinds to a halt.
I initially put it down to using Carbon Copy Cloner at night, but it has been getting more frequent during the day to the point where mail was just being queued.
I killed clamd again
ran
sudo /bin/launchctl unload /System/Library/LaunchDaemons/org.amavis.amavisd.plist
sudo /bin/launchctl load /System/Library/LaunchDaemons/org.amavis.amavisd.plist
but then all my incoming mail started going deferred
so I again reloaded amavisd.plist
then ran postsuper -r ALL, to requeue all the mail. This worked for a few minutes then clamd started going high CPU again.
Also in logs I started seeing in mail.log
Mar 25 12:30:50 fileserver postfix/smtp[147]: 502232589239: to=<[email protected]>, relay=127.0.0.1[127.0.0.1], delay=2616, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=00791-05, virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: Clam Antivirus-clamd av-scanner FAILED: CODE(0x1801270) Too many retries to talk to /tmp/clamd (Can't connect to UNIX socket /tmp/clamd: Connection refused) at (eval 51) line 310. at (eval 51) line 511.; ClamAV-clamscan av-scanner FAILED: /usr/local/bin/clamscan DIED on signal 11 (000b) at (eval 51) line 511. (in reply to end of DATA command))
So I commented out the entry for using clamd in /etc/amavisd.conf
and rolled back to previous version of clamv.
I am now getting mail in, and although very brief high clamscan usage it is working, the queue has been cleared.
But now I am getting no logging in anything apart from one file, /var/log/asl.log.76
this has thousands of entries
[Time 2008.03.24 22:08:47 UTC] [Facility local6] [Sender clamd] [PID 18032] [Message accept() failed: Too many open files;] [Level 3] [UID -2] [GID -2] [Host fileserver]
syslogd is also running very high CPU.
Has anyone any ideas what caused my initial problems and what I may have done now to break the logging. ???Thanks Alex
will schedule downtime to upgrade.
update
Reboot, again, of server cleared my logs problem (what a popular person I am ) -
Latest flashplayer not work well, even the early version in 11x and has high CPU usage
why is it that flashplayer 11x always has a High CPU Usage? detected by NOrton Antivirus
you can't rely on norton antivirus.
but if you check your active processes and directly confirm a problem with flash player 11+, uninstall your current flash player (http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-mac-os.html or http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html) and install an older version: http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html -
High CPU useage when more than 30 sessions logout/login
Hi guys,
I got this problem for a long time.
Environment : RAC 10.2.0.5 . Oracle enterprise linux 4.8. Java B2C application with dbcp and oc4j dirver.
Server type:Dell R815. 48 cpus 128 G MEM for each node.
Here's many of web application's connect to database and when one of them is down it will restart soon and try to connect to database again.Each one will try to get 50 connections concurrently in the first time.
So , when it happens ,the cpu useage of sys% will grow to more than 70 ,80 ,90% every time.
BTW, it also happens in more than 30 logout concurrently.
Could any one tell me what's the problem is ?
Thank you very much.
Edited by: Longfei Wei on Feb 17, 2011 11:48 PMLongfei Wei wrote:
Hi guys,
I got this problem for a long time.
Environment : RAC 10.2.0.5 . Oracle enterprise linux 4.8. Java B2C application with dbcp and oc4j dirver.
Server type:Dell R815. 48 cpus 128 G MEM for each node.
Here's many of web application's connect to database and when one of them is down it will restart soon and try to connect to database again.Each one will try to get 50 connections concurrently in the first time.
So , when it happens ,the cpu useage of sys% will grow to more than 70 ,80 ,90% every time.
BTW, it also happens in more than 30 logout concurrently.
Could any one tell me what's the problem is ?
The task of creating a connection and session has to be serialised, and if you start a number of logon or logoff attempts simultaneously you can end up with a storm of activity on the relevant latches that has serious knockon effects. I am a little surprised that you're seeing this with only 30 - 50 connections, but possibly you only have a couple of CPUs.
I made some comments about this on another thread some time ago: Re: Overhead of having high value of processes (or sessions) init parameter
It's possible that you can configure the application server to limit the rate at which it tries to create or terminate connection - e.g. there may be configuration settings to say things like: "create no more than 5 at a time", "wait one second between disconnections". (Oracle has introduced some parameters relating to logoff storms - but perhaps they don't work in your version).
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
A general reminder about "Forum Etiquette / Reward Points": http://forums.oracle.com/forums/ann.jspa?annID=718
If you never mark your questions as answered people will eventually decide that it's not worth trying to answer you because they will never know whether or not their answer has been of any use, or whether you even bothered to read it.
It is also important to mark answers that you thought helpful - again it lets other people know that you appreciate their help, but it also acts as a pointer for other people when they are researching the same question, moreover it means that when you mark a bad or wrong answer as helpful someone may be prompted to tell you (and the rest of the forum) what's so bad or wrong about the answer you found helpful. -
I keep getting a box that pops up saying "High CPU useage with Firefox". What do I do?
Sometimes a box pops up saying "High CPU usage with Firefox".
I'm not sure what to do or if this is harming my laptop.Well i tried the Microsoft Malware and everything is fine on this end and you are still crashing on me so with that said,i am giving you one more day to resolve this issue if i still get crashes from you i am sorry to say i will have to try another company as my browser and see if i have an issue with them if i don't,i will not be reinstalling Firefox again if i do,then it may be another issue so i will have to see but i have no Malware here but thank you for your response anyway...
-
Norton keeps giving me a lower right hand pop up comment “High CPU usage for plug in container on Firefox." Is there something I need to set to fix this? Should I be concerned? Sometimes this occurs with no other application running.
IMO, the detection threshold is set too low in that Norton app. Contact Norton support to find out how to set it higher, or how to turn it off.
Or quit using Norton. ''I hate the garbage they sell. IMO, it is good for one thing, making money for retailer's and for helping PC techs make money fixing what it does to PC's their customers bring in for repairs.''
http://community.norton.com/norton/ -
I received a high CPU message from Norton 360 for a plug in named plugin-container-exe today. I do not know what it does, should I be concerned if I see it again? What does it do?
I use Windows 7 OS, Office 2007This so called liquid damage that they are reffering
to probably occured when I was working and had my
computer on the desk...someone must have been
drinking a coke cause when I came back there was a
coke can on its side, but not exactly very close to
the computer, and the liquid had seeped underneath
the machine. When I picked the mac up there was
liquid on the bottom of it, but only because those
little useless rubber standoffs they put on the
bottom of these Macbook Pro's was not high enough to
be above the thickness of a water based liquid as it
runs across a desk. At that point I promptly had
unplugged the battery from my computer and the power
cable and dried it all off. From that day no NEW
problems had surfaced, the battery and heat issue
had already existed.I didn't expect that any should
because the liquid had only reached the bottom side
of the computer and it was shut off quickly.
Where was your desk?
I think you should find the drinker/spiller of the coke.
Getting electronics wet usually kils them, they aren't made water proof or even resistant.
Logic board+super drive+batery=$1200 probably not far off.
Some one owes you 1200 cokes and IMHO it is not Apple. -
Kernel_Task High CPU Useage
Hello Everyone!
I really need someones help.
Im getting very high Kernel Task on my Mac.
I replaced the battery and its still playing up.
Ive tried SMC reset.
I have a Etrecheck dump here...
EtreCheck version: 2.1.6 (109)
Report generated 23 January 2015 21:40:34 GMT
Download EtreCheck from http://etresoft.com/etrecheck
Click the [Support] links for help with non-Apple products.
Click the [Details] links for more information about that line.
Click the [Adware] links for help removing adware.
Hardware Information: ℹ️
MacBook Pro (15-inch, Early 2011) (Technical Specifications)
MacBook Pro - model: MacBookPro8,2
1 2.2 GHz Intel Core i7 CPU: 4-core
8 GB RAM Upgradeable
BANK 0/DIMM0
4 GB DDR3 1333 MHz ok
BANK 1/DIMM0
4 GB DDR3 1333 MHz ok
Bluetooth: Old - Handoff/Airdrop2 not supported
Wireless: en1: 802.11 a/b/g/n
Battery Health: Normal - Cycle count 38
Video Information: ℹ️
Intel HD Graphics 3000 - VRAM: 512 MB
Color LCD 1440 x 900
AMD Radeon HD 6750M - VRAM: 1024 MB
System Software: ℹ️
OS X 10.10.1 (14B25) - Time since boot: 0:18:51
Disk Information: ℹ️
Samsung SSD 840 EVO 250GB disk0 : (250.06 GB)
EFI (disk0s1) <not mounted> : 210 MB
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
Mac OSX (disk1) / : 248.85 GB (88.09 GB free)
Encrypted AES-XTS Unlocked
Core Storage: disk0s2 249.20 GB Online
MATSHITADVD-R UJ-898
USB Information: ℹ️
Apple Inc. FaceTime HD Camera (Built-in)
Apple Inc. Apple Internal Keyboard / Trackpad
Apple Inc. BRCM2070 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Computer, Inc. IR Receiver
Thunderbolt Information: ℹ️
Apple Inc. thunderbolt_bus
Configuration files: ℹ️
/etc/hosts - Count: 1
Gatekeeper: ℹ️
Mac App Store and identified developers
Kernel Extensions: ℹ️
/Applications/Parallels Access.app
[loaded] com.parallels.virtualsound (1.0.27 27 - SDK 10.6) [Support]
/Applications/Parallels Desktop.app
[not loaded] com.parallels.kext.hypervisor (10.1.2 28859 - SDK 10.7) [Support]
[not loaded] com.parallels.kext.netbridge (10.1.2 28859 - SDK 10.7) [Support]
[not loaded] com.parallels.kext.usbconnect (10.1.2 28859 - SDK 10.7) [Support]
[not loaded] com.parallels.kext.vnic (10.1.2 28859 - SDK 10.7) [Support]
Launch Agents: ℹ️
[loaded] com.google.keystone.agent.plist [Support]
[loaded] com.parallels.mobile.prl_deskctl_agent.launchagent.plist [Support]
[not loaded] com.teamviewer.teamviewer.plist [Support]
[not loaded] com.teamviewer.teamviewer_desktop.plist [Support]
Launch Daemons: ℹ️
[loaded] com.adobe.fpsaud.plist [Support]
[loaded] com.ea.origin.ESHelper.plist [Support]
[loaded] com.google.keystone.daemon.plist [Support]
[running] com.parallels.mobile.dispatcher.launchdaemon.plist [Support]
[loaded] com.parallels.mobile.kextloader.launchdaemon.plist [Support]
[loaded] com.teamviewer.Helper.plist [Support]
[not loaded] com.teamviewer.teamviewer_service.plist [Support]
[loaded] org.cindori.TEAuth.plist [Support]
User Launch Agents: ℹ️
[loaded] com.parallels.mobile.startgui.launchagent.plist [Support]
[running] com.spotify.webhelper.plist [Support]
User Login Items: ℹ️
iTunesHelper Application (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
TrimCheck Application (/Applications/Trim Enabler.app/Contents/Helpers/TrimCheck.app)
Internet Plug-ins: ℹ️
FlashPlayer-10.6: Version: 16.0.0.287 - SDK 10.6 [Support]
Flash Player: Version: 16.0.0.287 - SDK 10.6 [Support]
iPhotoPhotocast: Version: 7.0
JavaAppletPlugin: Version: 15.0.0 - SDK 10.10 Check version
QuickTime Plugin: Version: 7.7.3
Default Browser: Version: 600 - SDK 10.10
Safari Extensions: ℹ️
Adblock Plus [Installed]
Open in Internet Explorer [Installed]
3rd Party Preference Panes: ℹ️
Flash Player [Support]
Time Machine: ℹ️
Skip System Files: NO
Auto backup: YES
Volumes being backed up:
Mac OSX: Disk size: 248.85 GB Disk used: 160.76 GB
Destinations:
James-Seagate TM Backup [Network]
Total size: 1.99 TB
Total number of backups: 30
Oldest backup: 2014-09-20 20:43:44 +0000
Last backup: 2015-01-20 23:53:49 +0000
Size of backup disk: Excellent
Backup size 1.99 TB > (Disk size 248.85 GB X 3)
Top Processes by CPU: ℹ️
24% WindowServer
1% AppleSpell
1% ps
1% com.apple.WebKit.WebContent
0% notifyd
Top Processes by Memory: ℹ️
378 MB Safari
344 MB com.apple.WebKit.WebContent
155 MB Messages
112 MB ocspd
103 MB Finder
Virtual Memory Information: ℹ️
2.31 GB Free RAM
4.28 GB Active RAM
571 MB Inactive RAM
1.42 GB Wired RAM
997 MB Page-ins
0 B Page-outs
Diagnostics Information: ℹ️
Jan 23, 2015, 09:22:22 PM Self test - passed
Jan 20, 2015, 11:49:55 PM /Library/Logs/DiagnosticReports/mtmd_2015-01-20-234955_[redacted].cpu_resource. diag [Details]The kernel is using excessive processor cycles. Below are some possible causes for the condition.
Throttling
When it gets high temperature readings from the hardware, or low voltage readings from the battery of a MacBook, the kernel may try to compensate by interrupting the processor(s) to slow them down and reduce power consumption. This condition can be due to:
☞ a buildup of dust on the logic board
☞ high ambient temperature
☞ a worn-out or faulty battery in a portable
☞ the malfunction of a cooling fan, a temperature sensor, a voltage sensor, or some other internal component
Note that if the problem is caused by a sensor, there may be no actual overheating or undervoltage.
If the computer is portable, test with and without the AC adapter connected. If kernel_task hogs the processor only on AC power, charging is causing the machine to heat up. That behavior may be normal for some models. CPU usage should drop when charging is complete.
Apple Diagnostics or the Apple Hardware Test, though not very reliable, is sometimes able to detect a fault. For more thorough hardware testing, make a "Genius" appointment at an Apple Store, or go to another authorized service provider.
If nothing is wrong with the hardware, then whatever you can do to improve cooling may help.
Installed software
User-installed software that includes a device driver or other kernel code may thrash the kernel. That category includes virtualization software, such as Parallels and VMware, as well as most commercial "anti-virus" products. Some system-monitoring applications, such as "iStat," can also contribute to the problem. You can test for this possibility by completely disabling or removing the software according to the developer's instructions, or starting in safe mode. Note, however, that disabling a system modification without removing it or testing in safe mode may not be as easy as you think.
Corrupt NVRAM or SMC data
Sometimes the problem is cleared up by resetting the NVRAM or the SMC.
External display
Connecting an external LCD display to some MacBook Pro models while the lid is open may cause this issue. If applicable, test by closing the lid or disconnecting the display. You might get better results with a newer LED display. -
Why do I keep getting a Norton pop up message "High CPU useage with Firefox"?
I am not running any other applications when I get this message. Do I need to make some kind of setting change on my PC?
IMO, the detection threshold is set too low in that Norton app. Contact Norton support to find out how to set it higher, or how to turn it off.
Or quit using Norton. ''I hate the garbage they sell. IMO, it is good for one thing, making money for retailer's and for helping PC techs make money fixing what it does to PC's their customers bring in for repairs.''
http://community.norton.com/norton/ -
I tried to talk to norton support, I could not understand them.
( + I don't trust them ) norton said to ask firefox for helpYou can get latest version of Firefox from
* getfirefox.com
review mac installing guideline
* https://support.mozilla.com/en-US/kb/Installing%20Firefox%20on%20Mac -
Hi all,
I'm having high CPU usage with one of my Cisco 3845.
It works as an IP-IP Gateway and the CPU is quite high when the total number of calls only around 100-200 calls.
I check the CPU usage with "show process cpu sort" and it looks like there are some "hidden" processes that consuming CPU.
For example, 41% is total CPU, 25% is due to interrups, so CPU utilization on process level = 41 - 25 = 16%.
But as showed below, processes don't consume that much CPU, only around 7% ???
Please help to advise on this case. Any help is highly appreciated..
Thank you.
3845-GW#show process cpu sort | ex 0.00% 0.00% 0.00%
CPU utilization for five seconds: 41%/25%; one minute: 46%; five minutes: 47%
PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process
382 6619708 1473171 4493 1.59% 1.81% 1.92% 0 CCSIP_SPI_CONTRO
141 4228940 10181955 415 1.35% 1.51% 1.57% 0 IP Input
65 2450824 163102 15026 1.19% 1.16% 1.17% 0 Per-Second Jobs
370 2702292 3709512 728 0.87% 0.88% 0.88% 0 VOIP_RTCP
224 321680 245640 1309 0.47% 0.49% 0.50% 0 AFW_application_
112 93940 18093506 5 0.39% 0.31% 0.32% 0 Ethernet Msec Ti
384 1058280 1553567 681 0.23% 0.28% 0.30% 0 CCSIP_UDP_SOCKET
2 18148 32905 551 0.07% 0.03% 0.02% 0 Load Meter
137 35644 4657843 7 0.07% 0.04% 0.05% 0 IPAM Manager
189 206392 267959 770 0.07% 0.05% 0.07% 0 TCP Protocols
30 30792 198554 155 0.07% 0.01% 0.00% 0 ARP Input
368 145456 176151 825 0.07% 0.04% 0.05% 0 CC-API_VCM
28 9628 32759 293 0.00% 0.01% 0.00% 0 Environmental mo
48 221352 37922 5837 0.00% 0.11% 0.11% 0 Net Background
63 16728 32924 508 0.00% 0.01% 0.00% 0 Compute load avg
64 72080 2781 25918 0.00% 0.01% 0.00% 0 Per-minute Jobs
6 371644 29792 12474 0.00% 0.14% 0.12% 0 Check heaps
176 12216 240288 50 0.00% 0.01% 0.00% 0 CEF: IPv4 proces
284 36416 4929826 7 0.00% 0.02% 0.01% 0 MMON MENG
307 12168 806151 15 0.00% 0.01% 0.00% 0 Atheros LED Ctro
335 35300 19755 1786 0.00% 3.16% 1.00% 708 Virtual Exec
3845-GW#sh int g0/0
GigabitEthernet0/0 is up, line protocol is up
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full Duplex, 1Gbps, media type is RJ45
output flow-control is XON, input flow-control is XON
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/2/56803 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 1551000 bits/sec, 5751 packets/sec
5 minute output rate 4207000 bits/sec, 7643 packets/sec
925128804 packets input, 939078510 bytes, 0 no buffer
Received 62732 broadcasts (0 IP multicasts)
0 runts, 0 giants, 2 throttles
2 input errors, 0 CRC, 0 frame, 2 overrun, 0 ignored
0 watchdog, 3763438515 multicast, 0 pause input
1472816545 packets output, 3214770103 bytes, 0 underruns
0 output errors, 2067720191 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 2281155551 late collision, 0 deferred
2 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
3845-GW#sh int g0/1
GigabitEthernet0/1 is up, line protocol is up
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full Duplex, 1Gbps, media type is RJ45
output flow-control is XON, input flow-control is XON
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/30335 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 1684000 bits/sec, 7697 packets/sec
5 minute output rate 3372000 bits/sec, 5632 packets/sec
1484558664 packets input, 2383177786 bytes, 0 no buffer
Received 208998 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
2 input errors, 0 CRC, 0 frame, 2 overrun, 0 ignored
0 watchdog, 3060386282 multicast, 0 pause input
903478941 packets output, 2814588854 bytes, 0 underruns
0 output errors, 2910776303 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 4157448025 late collision, 0 deferred
2 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped outHas this been something that just recently started happening, or have you had this issue for a while? Have you installed any new programs recently?
You may want to download Glary Utilities, which is a free software(they will ask you if you want to go Pro, just say no, the free version works very well). There is a module for startup manager. You can go in and disable stuff that starts with the computer. I would advise unchecking adobe, java, quicktime, printers, etc. Anything that doesn't REALLY need to start with the computer. The nice thing with Glary is that you can restart the computer, and if you find that you need one of the programs to start with windows, you can go back in and enable it again.
The Celeron 925 processor in your computer is a decent entry level processor, but if there are too many programs running in the background, it can bog down quick. I would also recommend downloading and running Malwarebytes Anti-malware, to be sure that there is nothing malicous running in the background.
Qosmio X875 i7-3630QM, 32GB RAM, OCZ SSD Qosmio X505 i7-920XM, PM55, 16GB RAM, OCZ SSD
Satellite Pro L350 T9900, GM45, 8GB RAM , Intel 320 SSD (my baby) Satellite L655 i7-620M, HM55, 8GB RAM, Intel 710 SSD (travel system) -
This is a spin off from another thread which started off as slow inserts. But what actaully happens is every insert is preceded by select it turned out that the select was slow.
We have a multi-tier web application conencting to the DB using connection pool and inserting about a 100000 records in a table. To isolate the issue I wrote a PL/SQL which does the same thing.
This problem happens every time the schema is recreated or the table dropped and created again and we start inserting. When the table is empty, the selects choose a full table scan but as the records are inserted it continues to use the same even though after a few thousands of rows I run stats. But as its running if gather stats and flush the shared pool, it picks up the new plan using the indexes and immediately gets faster.
But in either case, full tablescan being slow after a few thousands of rows or using the index and getting much faster. Or me just doing the same select and no inserts on a table with 100000 rows, the CPU seems to be pegged to the core.
The code snipped repeated again
DECLARE
uname NVARCHAR2 (60);
primid NVARCHAR2 (60);
num NUMBER;
BEGIN
FOR i IN 1 .. 100000
LOOP
uname := DBMS_RANDOM.STRING ('x', 20);
primid := DBMS_RANDOM.STRING ('x', 30);
DBMS_OUTPUT.put_line (uname || ' ==> ' || primid);
SELECT COUNT (*)
INTO num
FROM TEST
WHERE ID = 0
AND (primid = primid OR UPPER (username) = uname OR uiname = uname
AND (deldate IS NULL)
ORDER BY TIME DESC;
INSERT INTO TEST
VALUES (0, uname, uname, 1, uname, primid);
IF MOD (i, 200) = 0
THEN
COMMIT;
DBMS_OUTPUT.put_line ('Commited');
END IF;
END LOOP;
END;This is the original thread
Re: Slow insertsMaybe if you post the actual code, or a code as similar to the actual code, the users of this forum may provide you with more appropriate suggestions.
Personally, I would like to understand what is the logic behind, so I can provide you with better advices.
Anyway, let's focus on the code that we currently have on the table.
Why your CPU goes high?
- Huge amount of LIOs produced by SELECT statement which is executed 100000 times.
- Usage of single-row / aggregate functions
- You mentioned you have some indexes created on table TEST. Index maintenance consumes some CPU as well.
Let's focus on the SELECT statement, since it is the most important reason for having high number of LIOs thus having high CPU usage.
I built a test case using the query you provided, with one difference, I named TEST table columns as COL1, COL2, etc. And instead of 100,000 cycles, I did 10,000
declare
uname varchar2(60);
pname varchar2(60);
num number(5);
begin
for i in 1..10000 loop
uname:=dbms_random.string('x',30);
pname:=dbms_random.string('x',20);
select count(1)
into num
from test
where col1=0
and (col2=uname or upper(col5)=pname or col3=uname)
and col4 is not null;
insert into test
values (0,uname,pname,1,uname,uname);
if mod(i,200)=0 then
commit;
end if;
end loop;
end;When I run 10046 trace and made tkprof report, I got the following for the SELECT part:
SELECT COUNT(1)
FROM
TEST WHERE COL1=0 AND (COL2=:B1 OR UPPER(COL5)=:B2 OR COL3=:B1 ) AND COL4 IS
NOT NULL
call count cpu elapsed disk query current rows
Parse 2 0.00 0.00 0 0 0 0
Execute 10050 0.48 0.43 0 0 50 0
Fetch 10000 94.07 94.37 0 2910664 2 10000
total 20052 94.56 94.80 0 2910664 52 10000As you can see, tkprof report indicated high CPU usage and 2,910,664 LIO calls.
The execution plan (I didn't include that part) indicated FULL TABLE scan on table TEST was used.
At this point the goal should be to reduce the number of LIO calls.
For this purpose I created the following indexes:
TEST_IDX1 on TEST(col2)
TEST_IDX2 on TEST(col3)
TEST_IDX3 on TEST(upper(col5)) - a Function Based Index
Let's forget about the statistics at this moment.
I will use index_combine hint in the SELECT statement to make CBO to try every index combination for listed indexes (B-Tree) and make bitmap conversion.
The new code looks like this
declare
uname varchar2(60);
pname varchar2(60);
num number(5);
begin
for i in 1..10000 loop
uname:=dbms_random.string('x',30);
pname:=dbms_random.string('x',20);
select /*+ index_combine(test test_idx1 test_idx2 test_idx3) */ count(1)
into num
from test
where col1=0
and (col2=uname or upper(col5)=pname or col3=uname)
and col4 is not null;
insert into test
values (0,uname,pname,1,uname,uname);
if mod(i,200)=0 then
commit;
end if;
end loop;
end;After running 10046 trace and creating tkprof report, I got the following result:
SELECT /*+ index_combine(test test_idx1 test_idx2 test_idx3) */ COUNT(1)
FROM
TEST WHERE COL1=0 AND (COL2=:B1 OR UPPER(COL5)=:B2 OR COL3=:B1 ) AND COL4 IS
NOT NULL
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 10000 0.79 0.70 0 0 0 0
Fetch 10000 0.68 0.71 3 59884 0 10000
total 20001 1.47 1.42 3 59884 0 10000
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: 54 (recursive depth: 1)
Rows Row Source Operation
10000 SORT AGGREGATE (cr=59884 pr=3 pw=0 time=1188641 us)
0 TABLE ACCESS BY INDEX ROWID TEST (cr=59884 pr=3 pw=0 time=1012723 us)
0 BITMAP CONVERSION TO ROWIDS (cr=59884 pr=3 pw=0 time=915796 us)
0 BITMAP OR (cr=59884 pr=3 pw=0 time=820728 us)
0 BITMAP CONVERSION FROM ROWIDS (cr=20039 pr=1 pw=0 time=258455 us)
0 INDEX RANGE SCAN TEST_IDX1 (cr=20039 pr=1 pw=0 time=157107 us)(object id 52988)
0 BITMAP CONVERSION FROM ROWIDS (cr=19902 pr=1 pw=0 time=198466 us)
0 INDEX RANGE SCAN TEST_IDX2 (cr=19902 pr=1 pw=0 time=109999 us)(object id 52989)
0 BITMAP CONVERSION FROM ROWIDS (cr=19943 pr=1 pw=0 time=198730 us)
0 INDEX RANGE SCAN TEST_IDX3 (cr=19943 pr=1 pw=0 time=107200 us)(object id 52990)As you can see the number of LIO calls fallen dramatically. Also CPU time is significantly less.
The second code completed in few seconds compared to the previous one which needed about 100 seconds to complete.
Please be aware that this is just an example of tuning the code that you provided.
This solution might not be suitable for your actual code, since we don't have any information about it. That's why it is important to give us as much information as you could, so you can get the most appropriate answer.
If the test code is similar to the actual one, you should focus on reducing LIOs calls.
In order to achieve it, you may want to use hints to force an index to be used.
Cheers,
Mihajlo -
Hello,
I have got an issue with one of my routers having high CPU. Could someone please guide me in troubleshooting high CPU. What I should be checking on the router and what could be the cause of high CPU.
ThanksHi,
There could be many reasons for high CPU. For high CPU on the router it could be process causing the high CPU or traffic (interrupts). Therefore first thing is to check if the CPU is being caused by some process or it is interrupts.
Few checks that you could quickly do on the router.
1. Show proc cpu sorted 5sec | ex 0.00 << This will confirm if there is process involved or interrupt.
2. Show stacks >> Any recent crash happened
3. Show ip traffic >> Any high amount of traffic which you think causing the issues.
4. Check if there is any debug running on the router.
5. Show interface switching >> Check if the how packets are being process.
Below document would be helpful in isolating the issue.
http://www.cisco.com/c/en/us/support/docs/routers/10000-series-routers/15095-highcpu.html
HTH,
Nikhil -
Dispatch Unit - High Cpu Usage
Hi,
ASA5510 8.2.5(50)
The Dispatch unit process is contantly having high cpu usage for last 10 hours.
Things checked:
1. show proc cpu-usage
2. show perf
It seems fine . Output attached
3. Show interfaces for error
No error, overruns, underrruns on interfaces
4. show traffic
Total cumulative through put on approx 4 Mbps.
drop rate max is 3 pkts /sec randomly and rare occurance on some interfaces
5. Connections and Xlate seem normal.
approx 1100.
Counters were reset 1 hour before the data was collected.
# sh cpu usage
CPU utilization for 5 seconds = 39%; 1 minute: 38%; 5 minutes: 44%
# sh processes cpu-usage sorted
PC Thread 5Sec 1Min 5Min Process
081aadc4 a79aff7c 35.7% 37.5% 42.5% Dispatch Unit
0853f89e a79a0b68 0.4% 0.2% 0.2% ARP Thread
# show perfmon
PERFMON STATS: Current Average
Xlates 0/s 0/s
Connections 21/s 32/s
TCP Conns 17/s 28/s
UDP Conns 1/s 1/s
URL Access 0/s 0/s
URL Server Req 0/s 0/s
TCP Fixup 0/s 0/s
TCP Intercept Established Conns 0/s 0/s
TCP Intercept Attempts 0/s 0/s
sh interface e0/0 | inc overrun
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
fw01/act# sh interface e0/1 | inc overrun
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
# sh conn all
1135 in use, 8777 most used
# sh xlate count
112 in use, 265 most used
# show asp drop frame
No route to host (no-route) 870
Flow is denied by configured rule (acl-drop) 103915
First TCP packet not SYN (tcp-not-syn) 1317
Bad TCP checksum (bad-tcp-cksum) 2
TCP failed 3 way handshake (tcp-3whs-failed) 6695
TCP RST/FIN out of order (tcp-rstfin-ooo) 4025
TCP packet SEQ past window (tcp-seq-past-win) 13
TCP Out-of-Order packet buffer full (tcp-buffer-full) 1949
TCP Out-of-Order packet buffer timeout (tcp-buffer-timeout) 600
TCP RST/SYN in window (tcp-rst-syn-in-win) 5
TCP dup of packet in Out-of-Order queue (tcp-dup-in-queue) 617
TCP packet failed PAWS test (tcp-paws-fail) 1248
IPSEC tunnel is down (ipsec-tun-down) 2
Slowpath security checks failed (sp-security-failed) 1699
DNS Inspect id not matched (inspect-dns-id-not-matched) 4
FP L2 rule drop (l2_acl) 15436
Dropped pending packets in a closed socket (np-socket-closed) 2
Please let us know what reason can be there for high cpu usage by Dispatch unit under current statistics?
What else should be checked to ensure cpu usage comes down?
Regards,
Gurjit Singh
Network Engineer
Spooster IT Services.Hi Gurjar,
r u getting the below mentioned syslog messages?
Flow is denied by configured rule (acl-drop) 103915
106023, 106100, 106004
TCP Out-of-Order packet buffer full (tcp-buffer-full) 1949
TCP Out-of-Order packet buffer full:
This counter is incremented and the packet is dropped when appliance receives an
out-of-order TCP packet on a connection and there is no buffer space to store this packet.
Typically TCP packets are put into order on connections that are inspected by the
appliance or when packets are sent to SSM for inspection. There is a default queue size
and when packets in excess of this default queue size are received they will be dropped.
Recommendations:
On ASA platforms the queue size could be increased using queue-limit configuration
under tcp-map.
Similarly you need to check many reasons for the asp drop logs that you have captured and you need to monitor how much it is increasing and the difference.......
but 40 % CPU utilization is a okay kind of thing and you do not need to worry if that happens only during peak hours ans it is not increasing drastically more and more.
http://www.cisco.com/c/en/us/td/docs/security/asa/asa82/command/reference/cmd_ref/s2.html#wp1435096
Regards
Karthik -
I have high cpu usage due the opendirectoryd activity
Since I have installed Mavericks, my CPU usage is at a constant level of almost 100%,
therefore the fans are speeding up en my batteries runs down very fast.
Before this I had Lion, and everything was running smooth.
In acitivity moinitor I have seen the following activities: opendirectoryd consuming all of my cpu usage.
Also, I can't turn WiFi off, it will automatically turn on immediately.
But even though I closed all my other programs in acitity monitor, this one keeps running and if I force quit it, it opens up again in a second.
When I take a look at my logs there seems to be a major problem:
11-02-14 16:21:56,000 kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1
11-02-14 16:21:56,000 kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1
11-02-14 16:22:13,000 kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1
11-02-14 16:22:13,000 kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1
11-02-14 16:22:33,000 kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1
11-02-14 16:22:34,000 kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1
11-02-14 16:22:53,000 kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1
11-02-14 16:22:54,000 kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1
11-02-14 16:23:11,000 kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1
11-02-14 16:23:11,000 kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1
11-02-14 16:23:29,000 kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1
If i don't run any programs, this log seems to appear every few seconds.
I have a MacBook Pro form late 2011,
2.4GHz Intel i5 with 4GB RAM and 10.9.1I just read briefly about this and correct me if I am wrong. If you are using unix, solaris use the top (% top) command by itself at the command prompt. The output will expose the top users on the system. From there you can drill down to work on the bottleneck causing the high cpu useage. It could be that it is just being very over worked and an upgrade is necessary. Or by using (% netstat -i ) the packets may be too small thereby creating alot of traffic on the system. Reducing the amount of packets by increasing their size without splitting them in the system may reduce the cpu useage.
Hope this helps.
al
Maybe you are looking for
-
How do I save pictures and videos taken on my i-phone to my pc or backup storage device?
Hello, I am trying to save my pictures and videos that I have taken on my i-phone to my computer or some sort of backup device. I am afraid in case my i-phone is lost or broken that I will have no permanent record of precious family footage. What a
-
Conference calls all of a sudden do not work??
We have a Call Manager 5.1 with MGCP controlled gateways. Out of no where our ablility to ad hoc conference call does not work. We connect the calls and no one can hear one another. Any suggestions as to what could be the cause? Any feed back would b
-
HT4972 How do you restore your Iphone
My iphone will not turn back on after i accidently said quit on the IOS5.0.1 update and i cant find out how to restore it
-
Photoshop CS4 won't recognize file and won't save
Help! I have Photoshop CS4. I have had trouble in the past with photoshop not recognizing my raw files from Nikon (NEF). Sometimes it does and sometimes it doesn't. Now I can't get PS to save any file, jpeg or ps. Can anyone help me please?
-
I am unable to use the app store every time i open the app it says can not connect to app store
i just want to download apps