12-10-2014
The compiler's optimizer noted that the value of "r" was never used, and eliminated the operation.
And if the code isn't optimized, the compiler almost certainly produced a LOT more instructions than necessary to simply load a value from memory into a register.
Nevermind the time spend actually doing the rdtsc() routines themselves.
10 More Discussions You Might Find Interesting
1. Windows & DOS: Issues & Discussions
Pls! will someone help me on how to clear my cache memory of my Internet browser
Thanks
Kayode (3 Replies)
Discussion started by: kayode
3 Replies
2. Solaris
I'm looking to get the file cache portion of physical (real) memory on a Solaris workstation (Similar to the Cache: line in /proc/meminfo on some Linux systems):
# swap -s; swap -l; vmstat 2 2; echo "::memstat" | mdb -k
total: 309376k bytes allocated + 41428k reserved = 350804k used,... (5 Replies)
Discussion started by: Devyn
5 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I'm running a debian lenny 1GB ram, but with a high I/O. This server has 400IOPS and 3MB/s sustain. So, I noted cached memory use 800MB, buffered memory use 50MB, and no free memory is available. Questions:
What does mean such a high cached memory?
Who's using this cached memory?
Is... (3 Replies)
Discussion started by: iga3725
3 Replies
4. UNIX for Advanced & Expert Users
18:45:47 # free -m
total used free shared buffers cached
Mem: 96679 95909 770 0 1530 19550
-/+ buffers/cache: 74828 21851
Swap: 12287 652 11635
Hi all. The below output is from a RHEL 4.5... (0 Replies)
Discussion started by: drummerrob
0 Replies
5. Red Hat
Right now i am using Red Hat Enterprise Linux AS release 4 and cache memory occupying around 1.5GB mentioned below,
total used free shared buffers cached
Mem: 2026 2021 5 0 161 1477
-/+ buffers/cache: 382 1644 ... (4 Replies)
Discussion started by: thakshina
4 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. Programming
The environment is Java/Windows. The program keeps near real-time state in memory cache, which is updated by multiple sources, size of the cache is roughly 500 MB, frequency of updates is ~ 20 per second. I am looking into different ways to keep current snapshot of the memory on the disk for a)... (9 Replies)
Discussion started by: migurus
9 Replies
8. Solaris
hi all,
i have noticed that my server has 64 GB RAM and i have application in this server but the server has free memory only 15% and utilized 85% however it didn't eat from swap .
does any parameter can be configured in kernel to make the system clear memory from cache like linux
i found... (4 Replies)
Discussion started by: maxim42
4 Replies
9. UNIX for Dummies Questions & Answers
i wish to clear memory cache on a production box and i was wondering what is the worst that can happen if i do?
i already tested this on a backup server and everything seemed fine.
but i need to know from you experts what are the worst things that can happen when i run it on a real server:
... (5 Replies)
Discussion started by: SkySmart
5 Replies
10. AIX
Hi,
I am new to AIX, Can someone please help me how to know the swap space, total physical memory and system cache?
We are using AIX 5.3.
Thanks! (3 Replies)
Discussion started by: Phaneendra G
3 Replies
LEARN ABOUT DEBIAN
cache::memory
Cache::Memory(3pm) User Contributed Perl Documentation Cache::Memory(3pm)
NAME
Cache::Memory - Memory based implementation of the Cache interface
SYNOPSIS
use Cache::Memory;
my $cache = Cache::Memory->new( namespace => 'MyNamespace',
default_expires => '600 sec' );
See Cache for the usage synopsis.
DESCRIPTION
The Cache::Memory class implements the Cache interface. This cache stores data on a per-process basis. This is the fastest of the cache
implementations, but is memory intensive and data can not be shared between processes. It also does not persist after the process dies.
However data will remain in the cache until cleared or it expires. The data will be shared between instances of the cache object, a cache
object going out of scope will not destroy the data.
CONSTRUCTOR
my $cache = Cache::Memory->new( %options )
The constructor takes cache properties as named arguments, for example:
my $cache = Cache::Memory->new( namespace => 'MyNamespace',
default_expires => '600 sec' );
See 'PROPERTIES' below and in the Cache documentation for a list of all available properties that can be set.
METHODS
See 'Cache' for the API documentation.
PROPERTIES
Cache::Memory adds the property 'namespace', which allows you to specify a different caching store area to use from the default. All
methods will work ONLY on the namespace specified.
my $ns = $c->namespace();
$c->set_namespace( $namespace );
For additional properties, see the 'Cache' documentation.
SEE ALSO
Cache
AUTHOR
Chris Leishman <chris@leishman.org>
Based on work by DeWitt Clinton <dewitt@unto.net>
COPYRIGHT
Copyright (C) 2003-2006 Chris Leishman. All Rights Reserved.
This module is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed or implied. This program is free software;
you can redistribute or modify it under the same terms as Perl itself.
$Id: Memory.pm,v 1.9 2006/01/31 15:23:58 caleishm Exp $
perl v5.12.4 2011-08-05 Cache::Memory(3pm)