Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
We are working on ubuntu10.04.
Currently it is using jiffies as a clocksource.
We want to set it to TSC.
How should we proceed ?
Also we are working on libpcap and we want to enhance it for that we want to enable MMAP support.
How should we do that?
We are working on ubuntu10.04. Currently it is using jiffies as a clocksource.
We want to set it to TSC. How should we proceed ?
You could change /sys/devices/system/clocksource/clocksource0/available_clocksource and set it only to tsc, but that's a bad idea. TSC is NOT an accurate time reference. From some reference material:
tsc is part of your actual CPU. I don't know what tsc was really meant for when designed, but it's a poor choice for timer when time
accuracy is important, because, well, it's simply not accurate. When my system was using tsc, I would notice time drift of almost 1
minute every hour. This seems to be considered 'ok' by people because you can just configure your computer to adjust clock daily with
ntp. Asside from the problem that tsc time will drift depending on your system load, if you have a multi-core system, tsc will drift
from itself on different cores. Some multi-core cpu's will synchronize tsc (I think the Intel Core 2 series, for example, but don't
quote me),, whereas other CPU's will lead to tsc being unstable and the system switching to something else. (although, this should
all happen automagically, a system throwing a hairball over it should be considered a bug.)
Also we are working on libpcap and we want to enhance it for that we want to enable MMAP support. How should we do that?
Waiting for the reply.
clocksource= Override the default clocksource
Override the default clocksource and use the clocksource
with the name specified.
Some clocksource names to choose from, depending on
[all] jiffies (this is the base, fallback clocksource)
scx200_hrt on Geode; cyclone on IBM x440
I currently use hpet, because it's the only one left for x86_64, and it works quite well.