Programming :: Implementing A Classless Qdisc (a Scheduler)?
May 13, 2011
i am running linux kernel 2.6.32-30 and my aim is to do packet aggregation in linux,so i created a qdisc simple one like sch_fifo.c and i wanted to put upon the dequeue function but when i attach my qdisct with tc qdisc add dev wlan0 root aggregate my screen just go black and in var/log/messages it says 31 m of stolen memory.graphic perfomance may suffer. can you somebody pls help me. Below is my dequeue function.
static struct sk_buff *aggregate_dequeue(struct Qdisc *sch)
{
struct sk_buff *skb;
struct packet_buffer *packet_buffer = {0};
packet_buffer->size=0;
skb = __skb_dequeue(&sch->q);
[Code]...
View 1 Replies
ADVERTISEMENT
Nov 8, 2010
when i was try to execute this command in shell# tc class add dev eth0 parent 2:1 classid 1:20 drr quantum 1500 Error: Qdisc "drr" is classless...kindly tell me how to solve this problem?.
View 3 Replies
View Related
Nov 8, 2010
when i was try to execute this command in shell. tc class add dev eth0 parent 2:1 classid 1:20 drr quantum 1500
Error: Qdisc "drr" is classless..
View 1 Replies
View Related
Feb 9, 2011
I am trying to write a BASH script that will help people print on Linux Servers (CentOS). I am asking the file in the script. We use a print server That have specific named print queue/ports.
The syntax I am using is:
lpr -H at-test.college.edu:Test-BWQ -U test test.doc
and I get a "lpr : Error - Scheduler is not responding!".
[Examples used:]
Server: at-test.college.edu
Port/queues: Test-BWQ
user: test
View 8 Replies
View Related
Apr 30, 2010
I have created a simple download schedular with source-code give below :
---------------------record_strokes.sh-------------------
touch /home/student/packs/lynx/logfile
lynx -cmd_log /home/student/packs/lynx/logfile
[code]....
View 10 Replies
View Related
Aug 27, 2009
I'm interested in writing a generational garbage collector in C++. This is for a Python-like programming language project. I have used Boehm's garbage collector before, but I'm worried that it will have noticeable pause times (unacceptable for interactive programs). Since I can't really find any other C++ established GCs out there, I have been thinking of simply writing my own.
However, there are two essential ingredients I need for this:
- Some kind of write barrier mechanism that will notify my collector when something is written to a part of the heap
- A way for me to know the addresses and sizes of the stack, heap and global storage (the root sets)
how to implement write barriers (and how to get the stack, heap and global storage information) on the Linux platform? As an alternative, if you know of C++ GCs other than Boehm, I would also be interested.
View 14 Replies
View Related
Oct 17, 2010
I am working on xlib project to develop text editor without using help from any of toolkit/widgets.I get stuck in scrollbar.I have no idea how they work and developed.It become more difficult as I am using low-level C library - xlib.
View 1 Replies
View Related
Mar 31, 2011
Though I have developed some web applications (automation tools) using PHP which have been primarily meant for Intranet (within the organizations I have worked for), I have paid little attention to SEO (it was not required until now). But now I want to understand how do we go about implementing SEO and where do we fit this mechanism in a system / website?
Do we need any other tools or learn some specific programming /scripting language to achieve it?Will implementing a good SEO yield identical results irrespective of what search engine (be it Google or Yahoo!) is being used by users?
View 1 Replies
View Related
Sep 12, 2010
implementing hamming code in c: Calculating the Hamming Code The key to the Hamming Code is the use of extra parity bits to allow the identification of a single error. Create the code word as follows:
Mark all bit positions that are powers of two as parity bits. (positions 1, 2, 4, 8, 16, 32, 64, etc.)
All other bit positions are for the data to be encoded. (positions 3, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17, etc.)
[code]....
View 2 Replies
View Related
Sep 12, 2013
I run Wheezy Xfce 64-bit. I went through the Synaptic listings and added Python 3.3.2 and Tkinter for it, and that works fine; but for some reason PyGtk is available only for Python 2.7, not for Python 3.3, unless I'm just using the wrong way to try to find it. Is there a PyGtk available for Python 3.3 in Wheezy, and, if so, how do I install it and then import it once it's installed?
View 1 Replies
View Related
Nov 15, 2010
Options:A double linked list with fixed size character arrays. New nodes will be added when previous ones get filled. Dynamic arrays using realloc(). Linked list has the disadvantage of not having an O(1) search like an array but I think using realloc() will be more dangerous since it moves the whole block to a new location and if the new location is not big enough to hold the whole block, realloc fails !! this case will not occur with the linked list since its nodes are scattered.
View 14 Replies
View Related
Aug 22, 2010
I need to implement AIDE on my client machines. The builds on these machine are different, so each workstation will have its own specific db generated through running AIDE initially. It is not good practice to just leave the db on the machine, since an "attacker" would be able to view this information. However, at the same time I do not want to pull back over 100 different aide db's to the ftp server and have an update pull each specifically every time I need to run the check. The plan is to leave the db on the client machine, but encrypt it (using public/private keys). I need to be able to encrypt the file on the client machine. I will use a cron on the client to pull an update (from my ftp server) that runs AIDE. This update needs to be able to decrypt the file, use it running AIDE, then re-encrypt the file on the client.
View 1 Replies
View Related
Mar 21, 2011
I seek a GNU Common LISP package which implements forkpty(); openpty() would also be a big plus, and login_tty() would be a luxury I could live with.
View 3 Replies
View Related
Oct 11, 2010
I'm working on a problem in which i have to implement the regular sleeping barber problem with multiple (say n) barbers. The code i'm using is this :
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<pthread.h>
#include<errno.h>
#include<sys/ipc.h>
#include<semaphore.h>
[Code]...
how to implement the modification? (there are many more such modifications where i'm stuck , but will ask about those later)
View 6 Replies
View Related
Feb 5, 2010
I need to control matrix 5x4 keypad, on a processor
i am doing by making one row low at a time, and keeping all other rows high,
by scaning coloums, the corresponding key value becomes low.
my problems is that it is taking much time to respond, like to make gpio
low to high and high to low...
View 1 Replies
View Related
Oct 23, 2010
Why can not use skb_queue of skbuff to enqueue and dequeue within qdisc in kernel programming? Also, I cannot find the source code of *enqueue of qdisc in LXR. Anyone understands qdisc and skbuff in kernel well?
View 1 Replies
View Related
Apr 24, 2011
I recently got an SSD and want to switch to using the noop IO scheduler permanently. I understand how to change the scheduler at runtime, but where can I put the command to make it apply on bootup?
I know you can pass "elevator=noop" to the kernel, but that sets all the drives to that scheduler, which I don't want as I still have ye olde spinning drives too - I just want a single drive set to noop..
I'm guessing there's an init script somewhere which is ideal for this, but I've no clue which!
View 3 Replies
View Related
Feb 6, 2010
Is there a DEB of the 2.6.32 Kernel with the BFS Scheduler built in? I'd like to give it a run, but I'm not so sure about compiling it on my own.
View 9 Replies
View Related
Apr 9, 2010
I have seen tutorials all over the web on how to use this, but I can't find the Task Scheduler anywhere on my system. I'm using 9.10.
Can anyone point me in the right direction?
View 1 Replies
View Related
Oct 5, 2010
When I try to schedule a task with kcron, It doesnt work. I installed it with sudo apt-get install kcron. Now it appears in advanced system settings.If I test the task with the run now button the task works correctly. However, when the set time arrives, the task is not performed automatically. I have tried both the personal user cron and the system cron.
By the way, when I try sudo service crond restart, It says service not recognized and when I use sudo contab -e, the file is empty. It should have something since I added an entry in the system's cron in the kde schedule manager.
View 9 Replies
View Related
Jul 12, 2010
I'm trying to run a command with the 'at' scheduler in Linux Mint 9. It's basically a ssh connection to my Smoothwall firewall to tell it to shut down, but that part isn't really important. The problem I have is that I can't get the 'at' schedule command to do much. I can type commands into the terminal and they work perfectly. If I enter exactly the same command into 'at' nothing happens.
For example, I can type 'plink -load smoothwall' into a terminal and a new ssh terminal comes up asking for my password to make an ssh connection. If I create an 'at' job with the same command, ie:
Code:
$ at now + 5 minutes
at> plink -load smoothwall
at> <Ctrl-d>
$
then nothing at all happens when the 5 minutes are up. I've checked that the job exists by doing an 'atq' command. Obviously there's something about 'at' that I don't understand. I've googled, I've looked in this forum and I've looked in a copy of 'The Linux Bible 2010' all without success. I've tried various alternative ways of entering the command for a couple of hours and I'm still stuck.
View 13 Replies
View Related
Jun 9, 2010
So how do I get real USB performance back? On older kernels, copying files to USB sticks, I'd get 30Mb/s. Struggling to get 4Mb/s now. What settings can I change?
View 10 Replies
View Related
Jul 20, 2010
I recently loaded ubuntu 10.04 on an older laptop to get a feel for using a GUI version. I would like to setup a recurring job schedule to start sound recorder or Audacity. I would prefer it was from a graphical user interface but would do it with a cron if I could get started.
View 1 Replies
View Related
Nov 16, 2009
I have made a vb6 porgram, it is running without any error in windows platform. However, i want it to be run at Fedora too. I run my program with Wine Windows Program Loader in a Linux pc, but the program stuck with an error message:
Run-time error '429':
ActiveX component can't create object
I thought it was the error message because of missing some dll/reference files, so I tried to copy all those related .dll & .ocx file into my wine file. (Just copy and paste into the system32 of wine, no regsvr32 statement to register the .dll as what we always do in Windows.) However, all my efforts are in vain. I not sure what is the cause of this error.
View 12 Replies
View Related
Mar 20, 2011
When I boot , I find a line: starting deferred execution scheduler: atd failed. How to do with it? I use Debian 6.
View 1 Replies
View Related
Jul 8, 2010
I'm having a problem with Vuze locking up when I use the speed scheduler plugin. I never had this issue when I was using them in windows.
Here is whats happening. I have speed scheduler set to pause my seeds during the day. sometimes when it pauses a finished torrent the status of the torrent will be stuck on "stopping". When it does this my bandwidth up and down drop to 0 and I cannot download new torrents. I cannot removed the "stopping" torrent or even restart it. Vuze just kind of locks up. I have to kill the java process and restart Vuse before I can get it working again.
I'm running the latest version of Vuze and the speed scheduler plugin on Ubuntu 10.04.
View 2 Replies
View Related
Mar 5, 2010
i am trying to implement DSR algo by tcl in ns2.but the problem i am facing is that i cannot make out how to circulate the ROUTE-REQUEST & ROUTE-REPLY packet in the established network.
View 2 Replies
View Related
Mar 22, 2016
Following VMware recommendations on how to change linux I/O scheduler for guests, I'm trying to do it on my VM machine running Debian Wheezy. At the moment I'm running kernel backports:
Code: Select all$ uname -a
Linux brutus2 3.16.0-0.bpo.4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3~bpo70+1 (2016-01-19) x86_64 GNU/Linux
The default I/O scheduler at the moment for device /dev/sda is CFQ, and I can change it on the fly to NOOP:
Code: Select all$ cat /sys/block/sda/queue/scheduler
noop deadline [cfq]
$ echo noop > /sys/block/sda/queue/scheduler
$ cat /sys/block/sda/queue/scheduler
[noop] deadline cfq
[CODE]..
View 1 Replies
View Related
Jan 17, 2011
I am new to the forum and new to Linux.
I am trying to explore if Linux can be run on a multicore platform when the max frequency of one the cores is less than the others.
please give me some pointers or let me know if you have tried such HW configuration.
View 1 Replies
View Related
Sep 5, 2010
I have been giving the task of shell scripting in C++ for implementation of Secure command in my shell. The Secure command will prompt for the filename and the password (like *****) and can only be displayed when ls -secure and password is provided. For example
>> LS
File1 File2
>> Secure File1
Password:*****
[code].....
View 1 Replies
View Related