LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 11-18-2011, 08:24 AM   #1
sparsh0mittal
LQ Newbie
 
Registered: Nov 2011
Posts: 23

Rep: Reputation: Disabled
kernel :address generated are non-uniform


I am using marss with qemu, but this question is related to qemu & kernel. When I use:

qemu-system-x86_64 -m 4G myImage.img

and print physical addresses that are passed to cache hierarchy, I see that the physical addresses are not in uniform range: for example:

GBrange numberOfAddresses

0-0.5---> 3325

0.5-1---> 1253

1-1.5---> 0

1.5-2---> 30

2-2.5---> 0

2.5-3---> 1708

3-3.5---> 10521

3.5-4---> 0

4-4.5--> 15428
This phenomenon affects my work in following way: In Marss (cycle-accurate simulator for x86), these addresses are used to access cache hierarchy. If phys-addresses are in only in certain range, then, only few cache-set-locations will be accessed and others not. I am studying cache, and this phenomenon stops me from applying any algorithm in cache: since cache is arbitrarily used.

Can I do something to make these addresses uniform? Since it is a kernel issue, I don't know what can be done? I would be grateful for any help.
 
Old 11-19-2011, 01:12 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Hello,

Noticed you have marked your thread as solved; Could you kindly share the solution you found with us?

Cheers,

Josh
 
Old 11-19-2011, 09:33 AM   #3
sparsh0mittal
LQ Newbie
 
Registered: Nov 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
Solution

Quote:
Originally Posted by corp769 View Post
Hello,

Noticed you have marked your thread as solved; Could you kindly share the solution you found with us?

Cheers,

Josh
Actually, I realized that, since cache sets are calculated by modulo; hence, even if not all physical addresses are utilized, but all cache-sets are utilized; since more than one phys address map to single cache set. Also, I took variance of number of accesses to different cache sets (4MB cache), and for 100M instruction, the Standard deviation is 48 which is not that bad!
Since I am mainly concerned with cache, I am OK for right now. But this physical address usage by kernel is still surprising. Thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
When IOMMU is enabled, how to get the Kernel Virtual Address from a Physical address leechaotang Linux - Kernel 1 11-10-2011 12:21 AM
Problem with uniform look for Qt and GTK apps alexbrui Slackware 7 04-12-2011 05:28 PM
Uniform CD-ROM driver Revision : 3.20 props666999 Slackware 1 04-06-2005 01:17 PM
FROM Address in server generated messages kiddies Linux - General 2 04-28-2004 12:24 PM
Uniform MP3 library Dark_Helmet Linux - Software 0 02-07-2003 10:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 02:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration