tag:blogger.com,1999:blog-1610041778732887994.comments2023-07-21T09:16:48.778-07:00Levent Serinol's BlogAnonymoushttp://www.blogger.com/profile/06161379979453710759noreply@blogger.comBlogger79125tag:blogger.com,1999:blog-1610041778732887994.post-74974881922956185992015-09-14T01:37:08.275-07:002015-09-14T01:37:08.275-07:00In modern erlang:
eprof:analyse(total).In modern erlang:<br /><br />eprof:analyse(total).Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-88616848419999062322014-04-01T04:52:56.543-07:002014-04-01T04:52:56.543-07:00Hi,
Thanks for the well written article. I wanted...Hi,<br /><br />Thanks for the well written article. I wanted to know If we could enable kgmon from boot time, i.e. during FreeBSD boot time. Is there a <br><br /><i><br />kgmon -b<br /></i><br />and <br><br /><i><br />kgmon -h<br /></i><br />equavalent code available during boot time? so that I can start profiling my code from the boot time itself? <br> Thanks a lot!Anonymoushttps://www.blogger.com/profile/13871844514621236181noreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-32990937433033389832013-10-08T06:55:32.934-07:002013-10-08T06:55:32.934-07:00That script was really helpful - used it on a Free...That script was really helpful - used it on a FreeNAS system where the 'watch' command is not available.James Pearcehttp://www.sirtech.com.aunoreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-39219420988292996142013-06-23T19:55:25.693-07:002013-06-23T19:55:25.693-07:00Here is a slightly optimized version:
#!/bin/bash
...Here is a slightly optimized version:<br />#!/bin/bash<br />exec 2>/dev/null<br />declare -i total<br />printf '%-2s\t%-9s\t%7s\n' pid process kIB<br />for proc in /proc/[0-9]*<br />do<br /> swap=($(awk '/^VmSwap/ {print $2}' $proc/status))<br /> [ "$swap" -ne '0' ] || continue<br /> printf "%-2d\t%-9s\t%7d\n" "${proc##*/}" "$(cat $proc/comm)" "$swap"<br /> total+=$swap<br />done<br />echo "Total(KiB):$total"Jon Disnardhttps://www.blogger.com/profile/16543991722877942602noreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-77869572624695807572013-05-06T05:47:54.645-07:002013-05-06T05:47:54.645-07:00as of 2.6.30-rc7as of 2.6.30-rc7Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-45127250885567058242013-03-11T23:35:47.103-07:002013-03-11T23:35:47.103-07:00thanks for very informative post.
had a question ...thanks for very informative post.<br /><br />had a question though.<br /><br />What should be an alarming 'fragmentation factor'?<br /><br />is there a rule of thumb for this? say > 2% <br /><br />can i safely assume that anything in double digits is bad ?<br /><br />thanking you,<br />vishnu raovishnuraohttps://www.blogger.com/profile/13865191899113945498noreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-84394832826670751252013-02-20T03:27:32.354-08:002013-02-20T03:27:32.354-08:00Hi, thanks it works fine.
Under Ubuntu, sudoers d...Hi, thanks it works fine. <br />Under Ubuntu, sudoers don't have the right to perform it. It require to be logged as root.<br /><br />CheersAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-67484079945427923482013-01-25T13:59:04.367-08:002013-01-25T13:59:04.367-08:00Lets say I have the following array:
# myarray=(b...Lets say I have the following array:<br /><br /># myarray=(bigcar smallcar car truck)<br /><br />Now I only want to delete elements that are exactly "car". Is there a way to do that using the following syntax: <br /><br /># ${myarray[@]/car/}<br /><br />without modifying the other elements of the array?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-40274186582335003542012-11-13T12:16:47.389-08:002012-11-13T12:16:47.389-08:00ip is an "all in one" tool. It replaces...ip is an "all in one" tool. It replaces the need for ifconfig and route, etc.. Those old tools will exist just for historical reasons, but ip is much, much, much more powerful. It's your way into the network stuff as well as advanced routing (things that you can't do with the old tools).<br />Anonymoushttps://www.blogger.com/profile/04292360421180148881noreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-56995392419397156872012-11-13T12:15:32.553-08:002012-11-13T12:15:32.553-08:00ip is one of those "all in one" valuable...ip is one of those "all in one" valuable tools. It displaces arhaic things like ifconfig and route. It's much, much, much more powerful. Things like ifconfig and route will go away (if it weren't for their historical use).Anonymoushttps://www.blogger.com/profile/04292360421180148881noreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-74532062226619647122012-10-31T06:22:49.713-07:002012-10-31T06:22:49.713-07:00Nice one!
Have you filed a PR for it?
LarsNice one!<br /><br />Have you filed a PR for it?<br /><br />Larslaemodosthttps://www.blogger.com/profile/00349177425658223586noreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-3228433199103790492012-10-31T06:22:21.030-07:002012-10-31T06:22:21.030-07:00Nice one!
Have you filed a PR for it?
LarsNice one!<br /><br />Have you filed a PR for it?<br /><br />Larslaemodosthttps://www.blogger.com/profile/00349177425658223586noreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-28846175733282205602012-09-14T08:09:39.866-07:002012-09-14T08:09:39.866-07:00How would the calculation if there were 8 cpus and...How would the calculation if there were 8 cpus and wanted to manipulate the CPU 6?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-92188162356936532882012-07-23T06:42:39.327-07:002012-07-23T06:42:39.327-07:00I cannot count how many times I've made use of...I cannot count how many times I've made use of this post. It has saved me too much time and effort.<br />Really thanks a lot :)Amr_not_Amrhttps://www.blogger.com/profile/13587127328874582386noreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-59658704523043217022012-07-23T06:41:37.886-07:002012-07-23T06:41:37.886-07:00I cannot count how many times this posts saved me,...I cannot count how many times this posts saved me, and how much time and effort it has saved.<br />Really thanks a lot.Amr_not_Amrhttps://www.blogger.com/profile/13587127328874582386noreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-4602948425721052912012-06-13T16:33:37.540-07:002012-06-13T16:33:37.540-07:00I know this was a while ago but..
Is it the case t...I know this was a while ago but..<br />Is it the case that whatever core handles the interrupt will process the packet wether it be traversing a bridge, IP routing, IP reassembly (if required) or will nor core process the interrupt and then share subsequent processing across all cores?<br /><br />Thanks,<br />Leighleighporterhttps://www.blogger.com/profile/05302818815635825482noreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-35783399985909836932012-05-24T23:04:51.095-07:002012-05-24T23:04:51.095-07:00Hi can you tell me how to use Eprof,
I want pdf ...Hi can you tell me how to use Eprof, <br /><br />I want pdf or does abt eprof..researchhttps://www.blogger.com/profile/17410279275714831455noreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-62932642412314655542010-12-01T20:31:11.350-08:002010-12-01T20:31:11.350-08:00@Adam
How do you test?
"9000 requests a se...@Adam <br /><br />How do you test?<br /><br />"9000 requests a second from the static image file."<br />Is the 9000 requests for the same file?<br />If so, nginx should cache everything in memory, thus it's very fast.<br /><br />However, the real world scenario is very different.<br /><br />Try benchmark a large number(more than 10K) of img path, you should have a different result.Wuvisthttps://www.blogger.com/profile/14060598574587767368noreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-30450565565719011362010-10-14T23:10:36.307-07:002010-10-14T23:10:36.307-07:00What about Last-Modified header? In the example yo...What about Last-Modified header? In the example you have a hard-coded value for Last-Modified. How do we configure this to be set dynamically?<br /><br />nginx sets the Last-Modified header automatically when it handles the request itself but when the request is passed to memcached, this header is not included in the HTTP response.Sid Ahujanoreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-63783135585768271182010-10-12T21:37:59.398-07:002010-10-12T21:37:59.398-07:00I also encountered the exact same problem. I had t...I also encountered the exact same problem. I had tried all means and still could not solve the problem. I tried googled for solutions and hints, but all gave the normal suggestions of checking /etc/exports etc. Only your blog gave the right solution that save my day.<br />Thank you for your excellent blogAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-89828102729495621592010-10-10T09:41:04.609-07:002010-10-10T09:41:04.609-07:00nginx + fastcgi definitely isn't "slower&...nginx + fastcgi definitely isn't "slower" than apache + mod_php, or even apache + fastcgi.<br /><br />Performance can be gauged in so many ways too, e.g. execution time, resource usage per request, concurrent requests and so on.<br /><br />I use the Symfony framework. Every request that goes via ANY framework has a very large overhead (due to the sheer number of classes and files involved in the request), and in my experience, execution times are quicker (albeit marginally) with nginx + fastcgi when compared to Apache. The big benefit you get with nginx + fastcgi is concurrency. In my experience, the nginx+fastcgi combo is capable of handling so many more concurrent requests with a lower overhead than even the most tuned Apache server.Ben Lancasterhttps://www.blogger.com/profile/00978574653361626925noreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-48396577384166138562010-09-09T06:04:07.752-07:002010-09-09T06:04:07.752-07:00You got overrun probably kernel cannot handle inco...You got overrun probably kernel cannot handle incoming hardware interrupts due to high number network packets. <br /><br />Handling network irq through many cpus is not a good idea, it probably give you latency when packet assembling is required. <br /><br />I think you have two choices. First one is channel bonding.Second one is playing with InterruptThrottleRate. if you increase it, you'll get high cpu usage and lower latency. it's a trade off. lowering it, will give you less cpu usage but high latency on packets. Also, you need to increase RX queue limit. If we're talking about high incoming network traffic.Anonymoushttps://www.blogger.com/profile/06161379979453710759noreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-35482206591951011302010-09-08T19:15:07.165-07:002010-09-08T19:15:07.165-07:00I experienced overruns on my network interface whe...I experienced overruns on my network interface when irqs are not balanced among all CPUs. But when they are all spread out there is no overrun. <br /><br />For some reasons new Dell servers and linux kernels don't automatically balance out the irq anymore. Do you have any ideas?Oat's Personal Bloghttps://www.blogger.com/profile/11456569097835020561noreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-73378662916994949102010-06-03T13:56:10.863-07:002010-06-03T13:56:10.863-07:00Thanks for this post. I just had this exact same ...Thanks for this post. I just had this exact same problem and for the life of me I could not figure this out. Don't think I would have ever figured it out without your blog.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1610041778732887994.post-55715774471095319222010-05-08T23:09:13.559-07:002010-05-08T23:09:13.559-07:00Thank you for this VERY (!) useful post!
Is it pos...Thank you for this VERY (!) useful post!<br />Is it possible and safe to use HAMMER fs on ssd (solid state drive) ? - some netbooks use them.<br /><br />I'm currently running eeepc 900 (low-end netbook with 900MHz intel celeron M) with 200GB usb-hdd formated to HAMMER fs & it works very well, so I'm thinking to format eeepc original sd-drive (4GB + 16GB) into one HAMMER fs.<br /><br />Once again, thanks for you info (in post)Anonymousnoreply@blogger.com