Search Results

Search: Posts Made By: fabulous2
17,131
Posted By fabulous2
start top command in "solaris mode"
Ever noticed that using the top command on a multiple cpu box can often give totally misleading answers, like 230%, when you think that 100% should be the max?

Well, that's because top has a...
3,682
Posted By fabulous2
removing bashisms/install dash on cygwin?
I would like to write unix shell scripts which are strictly POSIX compliant, and do not use any specific functionality that ties them down to one particular shell.

What is the best way to do this?...
5,563
Posted By fabulous2
I thought that if you did not export an...
I thought that if you did not export an "environment variable" when you change its value, then the change is only local, that is, the change is only seen within the process that performed that...
5,563
Posted By fabulous2
Thats clever, and it works! It is what I use...
Thats clever, and it works! It is what I use now.

I was thinking that there had to be some way to suppress the exit code, thanks.
5,563
Posted By fabulous2
Executing top -h yields top: procps version...
Executing
top -h
yields
top: procps version 3.2.7

My original post gave the uname -a result. This is a ubuntu server. Is there some other command that you would have me run?




Whew--at...
5,563
Posted By fabulous2
top's exit code indicates error--is this a bug?
This single line of code in a sh script file
top -b -n 1 -U $USER

causes the script to prematurely exit with an exit code of 1 (i.e. an error) if the script is run with the -e option (e.g. if...
15,662
Posted By fabulous2
Thanks for the pointer about sched.h. ...
Thanks for the pointer about sched.h.

According to The Linux Kernel Archives (http://www.kernel.org/) the latest stable version of the Linux kernel is 2.6.24.3. Unfortunately, I was not able to...
15,662
Posted By fabulous2
thread context switches: detection, prevention
#1: does anyone know how to detect how many times (and/or the time length) a given thread has been context switched out of the CPU?

#2: are there any tchniques that minimize/eliminate your thread...
6,443
Posted By fabulous2
While, like any good person, I share your dislike...
While, like any good person, I share your dislike of Microsoft, I am pretty sure that you are wrong for WinNT and successors: I was under the impression that they have always been fully preemptive;...
6,443
Posted By fabulous2
Why? Reproducibility of results. Generally,...
Why? Reproducibility of results.

Generally, when you publish benchmarks, you do so running no other programs. You may also try to turn off many background services/processes/whatever.

You do...
6,443
Posted By fabulous2
Did you read that Microsoft tech link that I...
Did you read that Microsoft tech link that I included in my first post?

"Commiting idle tasks" in windows means that idle (usually low priority?) processes, which have not completed yet, are...
6,443
Posted By fabulous2
Thanks for the tip--I was not aware of that...
Thanks for the tip--I was not aware of that command. I can see that it would be very useful for all kinds of benchmarking.

Unfortunately, it is not useful for my case, however. Maybe I should...
6,443
Posted By fabulous2
any way to commit idle tasks in unix?
I need to do some code benchmarking in unix.

On windows, it is always recommended that before you run any kind of benchmark, that you execute the command
Rundll32.exe...
16,460
Posted By fabulous2
No worries: I have never felt that you are...
No worries: I have never felt that you are beating me up on anything. I solicited feedback, and you generously shared your knowledge with me. I appreciate that. My delay in responding is merely...
16,460
Posted By fabulous2
Here is the latest revision of the script for...
Here is the latest revision of the script for anyone interested:

#!/bin/sh
set -e # exit on first failed command
set -u # exit if encounter never set variable

...
16,460
Posted By fabulous2
What is that supposed to mean? You only believe...
What is that supposed to mean? You only believe in tools supporting mechanisms and not rigid policies?

Assuming that that is the case, I half agree and half disagree with you.

The languages...
16,460
Posted By fabulous2
>> == me > = reborg (Only one level of...
>> == me
> = reborg
(Only one level of quoting seems to be supported on this forum, so I am reverting to old usenet style attribution.)


>>Personally, I think that it should always be an error...
15,122
Posted By fabulous2
I posted the last reply too soon. If I go...
I posted the last reply too soon.

If I go back to my original posting, and use this as an sh file:
#!/bin/sh
echo java -XX:OnError=\"gdb\ -\ %p\" HelloWorld
java -XX:OnError=\"gdb\ -\ %p\" ...
15,122
Posted By fabulous2
Maybe this is a unix variant problem. On...
Maybe this is a unix variant problem.

On cygwin, when I use
\"gdb\ -\ %p\"
I see a single space (" ") in echo's output. But the java command fails because the script is still interpreting the...
16,460
Posted By fabulous2
OK, that explains it. But they still need to...
OK, that explains it.

But they still need to fix their support links--those have been broken for weeks now; I have tried contacting them thru other means, but no response.
16,460
Posted By fabulous2
I do not understand your objection. Of course it...
I do not understand your objection. Of course it does nothing for the script that I posted, because it has now been debugged and is working fine. The purpose of it is to detect any issues if some...
16,460
Posted By fabulous2
[Note to the people running this website: I...
[Note to the people running this website: I received the following email over a day ago that someone responded to my original posting. And yet, it has never appeared here! I always see just 0...
15,122
Posted By fabulous2
Does that really escape the spaces? I thought...
Does that really escape the spaces? I thought that the backslash only worked for certain subsequent chars (e.g. another \, or an n, etc).

Regardless, I tried it and it does not work.

I also...
9,074
Posted By fabulous2
Thanks for the subshell idea. Its clever, but I...
Thanks for the subshell idea. Its clever, but I agree that it is not a perfect solution.

Just out of curiosity, what is the purpose of the typeset in the code below?



Since you are giving...
15,122
Posted By fabulous2
Sorry if my inital psot was unclear. I want ...
Sorry if my inital psot was unclear. I want
-XX:OnError="gdb - %p"
to be interpreted as a single argument, not as 3 separate arguments as is currently happening.

I should have mentioned that I...
Showing results 1 to 25 of 30

 
All times are GMT -4. The time now is 10:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy