How to know actual memory/RAM installed in Xen Host system?

I always hear complaints on “actual memory ( RAM ) displayed in XEN host system is NOT CORRECT or how to know actual physical RAM in Xen host system” …

Knowingly/unknowingly we execute the command “free” command in Xen host system and will complain as mentioned. “free” command wont help you here, because ‘free’ will show you the physical memory available for Dom0 or Privileged Guest. This command can not help you in this situation or if you are running XEN virtualization in your system/setup.

But there is another way to get the exact information!!!. Thats what you are looking for, Isnt it ? here it is:

Fire the command “xm info” in your Xen host system and grep for “memory”

[terminal]
# xm info |grep -i memory
[/terminal]

Did you try and see the result? 🙂

Can I derefernce void pointer ?

Today, some body asked me $subject.. The answer is : NO .. You should not dereference void pointer before letting the compiler know, to “what” it is pointing. That said, do type casting to the approprite pointer type  before dereferencing a void pointer      

String reversal using recursion in C

Even-though there are more methods to do the same job, below program demonstrates 2 of it. 1) Using pointers and changing the string array 2) Simple way by printing the chars in callee . You can use #define POINTERS  to switch between the 2 options.. [terminal] #include #include #include # define MAX_SIZE 100 /* If …

Read more

pg=1 ( segmentation and paging in linux) -Part 1

[These notes are taken from my study  on this topic @post date, things may or may not have changed.. Refer latest kernel source code and manuals if you really care ( Or if you think I have a misunderstanding on this topic 🙂 )about it…] Here, I will explain some bits about segmentation and paging. …

Read more