Programming :: Get Length Of Run Queue And Swap Queue?

Nov 3, 2010

is it possible to get the length or even the items of both queues, the run queue and the swap queue? I've googled a lot but had no luck. Maybe I havn't used the correct search words...

Is there any header and/or code example to use structures or any API to get these information from the kernel or the scheduler?

View 1 Replies


Red Hat / Fedora :: Make The Average Queue Length Of HD?

May 19, 2010

how to make the average queue length of HD. and therefore that each process be using? anyone can do this by prompt?

View 9 Replies View Related

Programming :: Submit Job To Queue?

May 15, 2011

Is there a more convenient way or function call to submit a job to a queue than the following in Linux?

#include <stdlib.h>
system( "at -f /var/myproj/ now" );

View 2 Replies View Related

Programming :: Block Messages On A Message Queue ?

Dec 3, 2010

I'm facing a scenario in which i need to block messages from being passed onto a message queue when my code is running. how to proceed.

View 8 Replies View Related

Programming :: How To Communicate Between Two Threads Using Message Queue

Jun 7, 2011

How to communicate between two threads using message queue?

View 4 Replies View Related

Programming :: Theoretical Limit On Message Queue Sizes ?

Jun 4, 2010

Following function obtains the system-maintained structure for a message queue:


And following function simply resizes a message queue to a user-defined value, namely, "size":


My question is if there is a theoretical limit on user-defined message queue sizes.

To put in other words, is it possible to increase the default message queue size to any user-defined value as long as that certain value does not exceed the size of system's physical memory ?

I use 64-bit Ubuntu 9.04.

View 2 Replies View Related

Programming :: Implement (linear Data Structure) Queue In Shell Script?

Jun 21, 2010

I am in deeply need of queue (linear data structure) in shell script. How can I implement this ??

View 2 Replies View Related

Programming :: Program Hang Stuck There Signal Handling On POSIX Message Queue UNIX C Pr

Jun 14, 2011

In a single main() function,so need signal handling. Use Posix Message Queue IPC mechanism , can ignore the priority and other linked list message,to implement the scenario:

View 1 Replies View Related

Networking :: How To Monitor Queue In NS2

Jun 23, 2010

How do I use the drop-trace command in NS2 to create a trace file of all of the packets dropped over the course of a simulation? If drop-trace is the wrong command to use, which command should I use to monitor the number of packets dropped at a certain queue in a link?

View 2 Replies View Related

Server :: CPU Queue Vs CPU % Busy

Dec 29, 2010

Am wondering if looking at the CPU process queues, vs CPU% busy, are a better indication of whether an upgrade is needed.

Afterall, processes can still queue up to be processed even if "top" doesn't shown CPU 100%. Say if it's indicating 50% busy within the top output, it's only saying that 5 out of 10 times sampled, the CPU was busy. But a process may arrive to be processed at any time, and if it arrives just when the CPU is processing something it needs to wait in the queue. Am I making senses?

How many processes queued up would suggest an upgrade is required of the CPU? I've read online (believe it's Microsoft) that 2 is the figure.

View 2 Replies View Related

Debian :: How To Flush Printer Queue

Mar 16, 2011

I have an HP printer for my Lenny which has worked for some year. But I don't remember what method I used to install it. So this is one piece of the puzzle that I can't see. But like I said the printer works. One day I accidentally printed more than I had papers in the printer-machine. Then I kind of stacked a lot of print jobs in the queue out of frustration. So whenever I reboot the PC/Lenny then it waste some paper by printing things that got stuck in the printer queue. It's not very environmental this weird behavior.

So next time this happens how do I flush the Printer queue so Lenny doesn't remember what happened before the reboot? I followed these instructions earlier but it only switched one weird behavior with another weird behavior. So it didn't work for my Lenny, and I couldn't find any better solutions on the Internet. [URL]...

View 3 Replies View Related

Fedora :: Add/remove Software In Queue With F15?

Aug 20, 2011

I installed fedora 15 from a live CD distro. everything works great except --add/remove software application. Applications for intallation or installed application do not appear at all. Is like an empty add/remove software application.

View 2 Replies View Related

General :: Possible To Queue An Item In Postfix By?

Aug 22, 2011

I'm wondering if it's possible to create mail packages and put them into the postfix queue simply by writing files to the hard drive.Currently I have a script which uses a socket connection to dump the data in, but if I could write it directly to the hard drive this would speed things up considerably. Is this possible?

View 3 Replies View Related

Ubuntu :: Big Print Job Sitting In The Queue?

Jan 24, 2010

have a big print job sitting in the queue which I don't need (the print job that is) .. QUESTION: how do I clear the print queue in Ubuntu 8.04

View 6 Replies View Related

Ubuntu :: Queue Torrents In Transmission?

Jun 1, 2010

I recently started using Transmission torrent client. I love it! The light weight and web interface feature is compelling. I am not able to figure out how to queue torrents.

View 3 Replies View Related

Ubuntu :: Can't Delete Job From Queue - Can't Print XP

Aug 23, 2010

The Gnome Print Manager found the printer with no problems. The correct driver was available - so I installed it. The printer shows up when called by a print job I want to send. The queue pretends to process it. The queue states "completed." Then Nothing comes out of the printer. XP shows the print job as pending. Still nothing comes out of the printer. And I can't delete the job from the Ubuntu queue (because that lying SOB tells me the job is completed). I can't print from XP to that printer until I delete or cancel the Ubuntu job (from the XP queue) - or clear the XP print queue (by deleting spool files). Permissions on that printer are not an issue. Printing from Ubuntu to that printer worked OK on earlier versions of Ubuntu.

View 1 Replies View Related

Networking :: Function Of TCP Backlog Queue

Aug 3, 2010

I want to know the basic function of TCP Backlog queue.

View 3 Replies View Related

Security :: Unusual Sm-msp-queue Log In Maillog?

Apr 25, 2010

I'm running sendmail in FC6. For the last 3/4 days I'm geeting the following unusual message in my maillog:

Apr 25 04:03:54 mail sendmail[20827]: o3OLq515020827: from=<>, size=8084, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost.localdomain []
Apr 25 04:03:54 mail sendmail[20827]: o3OLq516020827: ruleset=check_mail, arg1=<>, relay=localhost.localdomain [], reject=451 4.1.8 Domain of sender address
m does not resolve
Apr 25 04:03:54 mail sm-msp-queue[20769]: o3N6XIQd029543:


View 2 Replies View Related

Server :: Exim Not Processing Queue

Apr 11, 2010

Mails are not going out of the queue. Removed all frozen mails and tried to flush queue using exim -qf command. Also checked queue after restarting exim. Still messages are not going out of the queue.

View 1 Replies View Related

Software :: Sendmail Queue Not Processing

Apr 6, 2010

Ok for some reason my sendmail queue is not processing the mail that's in mailq it looks like it trys to process and times out or something and skips to the next one, is there any way I can find out why it's not sending the queue list that's in mailq. the mail that's in the queue list is from my websites registration form.

View 14 Replies View Related

Debian :: Iptables - Netfilter Queue Handling

Jul 17, 2015

I have created a nfq handler via nfq_open() and using the returned qhandle to bind my application program to a specific queue number that is configured in iptables. when i invoke nfq_create_queue() my program is stuck there and the back trace shows it is blocked in recvfrom()


in recvfrom () from /lib/x86_64-linux-gnu/
in nfnl_recv () from /usr/lib/
in nfnl_catch () from /usr/lib/

View 0 Replies View Related

General :: Setup The Printing Without A Local Queue?

Jan 10, 2011

I have a non-root account on a shared server, on which the system administrators do not support printing because of past experience with stalled and runaway jobs. For the same reason, they do not allow installation of a user-land spooler. How can I set up printing without a local queue?

View 4 Replies View Related

Ubuntu :: Print Jobs Stuck In Queue?

Mar 28, 2010

I have 2 printers plugged into a Windows XP PC (an Epson Stylus Photo RX580, and an HP Laserjet 1020) with full sharing on and everything, and is shared with other Windows PCs via the network I have set up. It has worked perfect. But today I added a PC running Ubuntu 9.10 and and can't figure out for the life of me what I am doing wrong. I installed both of the printers via the GUI in Administration, and both of them are detected and Ubuntu says they're working. But when I put something in the queue to print it stays there with the status "pending".

View 8 Replies View Related

Ubuntu :: File Commander With Queue Function?

Nov 25, 2010

Im running Ubuntu/Gnome and have been using Wine to run Total Commander, an App that a truly love but has its limitations under Wine. So Im looking for a native replacement for it, but it has to have the queue function of Total Commander. I have tried Tux commander and Gnome Commander and neigther of them seam to have it?

Krusader supposedly has it but needs about 300MB of KDE librarys and such. Are there any other alternatives?

View 4 Replies View Related

Networking :: Userspace Ethernet Packet Queue

Feb 12, 2010

I am a windows programmer. There I wrote a firewall and VPN System. It was easy. Simply, I USED WINPKFilter by I need is to GET, Edit, and Send the raw Layer 2 packet before reaching to IP Stack.My friends were saying that linux is Ideal for Networking purposes. But for now I say that Linux is very bad in this field and I should say that windows is much better (I beg your pardon)After tens of hours for searching I got nothing good. The hook system of IPtables is not GOOD for me because it has not Ethernet header and also the packets are defragmented when I caught them.

I tried ebtables but it has no user space queue like IPTABLES. What I exactly need is to be able to reach to the chain of raw Ethernet packets and be able to modify them and resend or inject some ethernet packet packet. I Dont Want to go inside the KERNEL. (As windows I want a userspcae library). Dear linux expert I beg your help. Do not let me turn back to windows.

View 1 Replies View Related

Red Hat / Fedora :: CUPS Print Queue Is Disabling?

Apr 16, 2011

I am running CentOS 5.4 with CUPS v1.3.7 and have a Brother printer (MFC-5895CW) that connects wirelessly to a SonicWall device. The SonicWall is hardwired to my PC. I have found that periodically, the printer queue will become disabled and the only way to re-enable it is to issue a cupsenable command.

I believe that queue only gets disabled if the wireless connection drops in the middle of a print job. I've tried dropping the wireless connection and then bringing it back up when no print jobs are active or pending and the queue is fine for the next print job that is sent when the connection is up.

I did a little research and found that my version of CUPS contains support for an ErrorPolicy setting in the printer.conf file that may prevent the print queue from being disabled. I'm hoping that if I change the default value from "stop-printer" to "retry-job" that this will prevent CUPS from disabling the print queue and requirring a cupsenable command to re-enable the queue.

I don't want to play around with scheduling cron jobs to enable the queue.

View 3 Replies View Related

Server :: Cen't OS And Qmail: Messages In Queue Going Crazy?

Aug 20, 2010

Anyone have an issue with Messages in Queue going crazy? and inside the emails is: Received: (qmail 13662 invoked by alias); 20 Aug 2010 10:07:14 -0700 Delivered-To: [URL]..

Don't really know what could be causing this, the other day my messages in queue was at like 5,000 or so, but now its up to 445,000 messages in queue!! All of them that exact message.

View 3 Replies View Related

Server :: Postfix Queue Time Limit ?

Apr 27, 2010

I notice that when someone sends a message from my Postfix server & it can't find the destination server or if there is a incorrect domain recipient entered by mistake, it sits in my Postfix queue for days. I think perhaps 4-5 days for some reason. I was wondering if I could shorten the time so the sender gets a delivery failure message kicked back to them in 24 hours rather than waiting 4 or so days.


View 1 Replies View Related

Server :: Search Mails In Queue Of Sendmail By IP?

Feb 18, 2010

how can i search mails in queue of sendmail /var/spool/mqueue by IP. This facility is available in qmail e.g. qmqtool -f '' this search all mail messages by IP and we can delete all the message easily.

View 1 Replies View Related

Server :: Unexplained Mails In Postfix Queue / Get Rid Of Them - Why Is So?

Jul 21, 2010

On the postfix mailserver of our company I'm seeing several of these messages in the deferred queue (apologies for the terrible formatting, I couldn't get it any better) code...

looking at the headers, there is probably something wrong with our DNS-server, which we will investigate, but I still have some questions about the failure notice:

- why are the failure notices refused? Is that a fault on the sender side, for example sending the wrong return address?

- where does this[] come from anyway? I don't see it anywhere in the headers.

View 1 Replies View Related

Copyrights 2005-15, All rights reserved