10 More Discussions You Might Find Interesting
1. Programming
#include<stdio.h>
#include<stdlib.h>
#include<sys/time.h>
#include<time.h>
#include "rdtsc.h"
#define SIZE 4*64*1024
int main()
{
unsigned long long a,b;
int arr={0};
int i;
register int r;
a=rdtsc();
r=arr;
b=rdtsc();
printf("1st element Access Cycles = %llu\n",b-a); (2 Replies)
Discussion started by: Vaibhavs1985
2 Replies
2. OS X (Apple)
Hey there! I'm a new user here who registered because I couldn't get these kind of questions answered in the place I directly com from. :o
I've found a discrepancy in total RAM used and I can't figure out why it is. My only guess is there are some RAM used by some stuff impossible to identify,... (2 Replies)
Discussion started by: dasx
2 Replies
3. Shell Programming and Scripting
Hi All,
I have around 900 Select Sql's which I would like to run in an awk script and print the output of those sql's in an txt file.
Can you anyone pls let me know how do I do it and execute the awk script? Thanks. (4 Replies)
Discussion started by: adept
4 Replies
4. Shell Programming and Scripting
> reverse=`tput rev`
> revert=`tput sgr0`
> var="This is some note."
> echo $var
This is some note.
> var2="This is ${reverse}some${revert} note."
> echo $var2
This is some note.
> var3=$(echo $var | sed 's/some/${reverse}some${revert}/g')
> echo $var3
This is... (3 Replies)
Discussion started by: adamreiswig
3 Replies
5. Solaris
Hi all,
We are seeing an odd problem on one of our new servers. It seems to be reporting 4MB less RAM than is installed:
# prtconf | grep Mem
Memory size: 32764 Megabytes
Our other servers for example shows none missing:
# prtconf | grep Mem
Memory size: 32768 Megabytes
Both... (5 Replies)
Discussion started by: wmd
5 Replies
6. Shell Programming and Scripting
When I run 'top' command,I see the following
Memory: 32G real, 12G free, 96G swap free
Though it shows as 12G free,I am not able to account for processes that consume the rest 20G.
In my understanding some process should be consuming atleast 15-16 G but I am not able to find them.
Is... (1 Reply)
Discussion started by: prasperl
1 Replies
7. Shell Programming and Scripting
During a file-system cleanup I noticed a strange behavior of awk (HP-UX 11iv3 / IA64). When summing up the size of files in one directory it gives different numbers when using print as opposed to printf:
find . -type f -name '*.dmp.Z' -mtime +35 -exec ls -l {} \+ | \
awk 'BEGIN{ OFMT="%f" } {... (1 Reply)
Discussion started by: pludi
1 Replies
8. Solaris
A fresh installation was done in a machine of name arenal1 on Feb 26. But in the /var/adm/messages of the machine, there are messages having date Nov 12. Also the name of the machine is also different in the messages. Can anyone please tell me the reason for this discrepancy. (15 Replies)
Discussion started by: sundar3350
15 Replies
9. UNIX for Dummies Questions & Answers
I have an RPM that I am trying to install and it keeps coming back with:
I know I could kill the bird by throwing a "yum install *perl*" at it, but this seems like hurling a skyscraper at an ant...
any better suggestions? (2 Replies)
Discussion started by: jjinno
2 Replies
10. UNIX for Dummies Questions & Answers
I have a query in relation to a couple of machines I have set up. We will call them machine SUN and HPUX and they are running those operating systems respectively. The SUN machine is acting as an NIS server and the HPUX machine as an NIS client. Now the HPUX machine also has a an auto mounted file... (11 Replies)
Discussion started by: Henrik
11 Replies