* query...
@ 2005-08-09 10:28 raja
2005-08-09 10:40 ` query Nikhil Dharashivkar
2005-08-09 10:58 ` query Sudheer
0 siblings, 2 replies; 9+ messages in thread
From: raja @ 2005-08-09 10:28 UTC (permalink / raw)
To: linux-kernel
Hi,
I am Creating a posix message queue using the following code.
#include <stdio.h>
#include <stdlib.h>
#include <mqueue.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
int main(int argc,char *argv[])
{
mqd_t mq_des;
mq_des = mq_open(argv[1],O_CREAT | O_RDWR | O_EXCL,S_IRUSR | S_IWUSR
| S_IRGRP | S_IROTH , NULL);
if(mq_des < 0)
{
printf("Unable To Create MsgQ\n");
perror("mq_open");
return mq_des;
}
printf("MsgQ is Opened With Descriptor : %d\n",mq_des);
return mq_des;
}
and I after compiling I am giving
./a.out /root/Desktop/msgq1
But It is giving as unable to create message queue and showing error as
'permission denied'
Would you please help me.
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: query...
2005-08-09 10:28 query raja
@ 2005-08-09 10:40 ` Nikhil Dharashivkar
2005-08-09 10:58 ` query Sudheer
1 sibling, 0 replies; 9+ messages in thread
From: Nikhil Dharashivkar @ 2005-08-09 10:40 UTC (permalink / raw)
To: raja; +Cc: linux-kernel
I think it could be root permissions problem. Are you running this
binary as root user ?
On 8/9/05, raja <vnagaraju@effigent.net> wrote:
> Hi,
> I am Creating a posix message queue using the following code.
>
>
> #include <stdio.h>
> #include <stdlib.h>
> #include <mqueue.h>
> #include <errno.h>
> #include <string.h>
> #include <fcntl.h>
> #include <sys/stat.h>
> #include <sys/types.h>
>
> int main(int argc,char *argv[])
> {
> mqd_t mq_des;
> mq_des = mq_open(argv[1],O_CREAT | O_RDWR | O_EXCL,S_IRUSR | S_IWUSR
> | S_IRGRP | S_IROTH , NULL);
> if(mq_des < 0)
> {
> printf("Unable To Create MsgQ\n");
> perror("mq_open");
> return mq_des;
> }
> printf("MsgQ is Opened With Descriptor : %d\n",mq_des);
> return mq_des;
> }
>
>
> and I after compiling I am giving
>
> ./a.out /root/Desktop/msgq1
>
>
> But It is giving as unable to create message queue and showing error as
> 'permission denied'
>
> Would you please help me.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
--
Thanks and Regards,
Nikhil.
^ permalink raw reply [flat|nested] 9+ messages in thread* RE: query...
2005-08-09 10:28 query raja
2005-08-09 10:40 ` query Nikhil Dharashivkar
@ 2005-08-09 10:58 ` Sudheer
1 sibling, 0 replies; 9+ messages in thread
From: Sudheer @ 2005-08-09 10:58 UTC (permalink / raw)
To: 'raja', linux-kernel
First -> you hit the wrong ML
Second -> The message queue exists and the permissions specified by
oflag are denied, or the message queue does not exist and permission to
create the message queue is denied
-----Original Message-----
From: linux-kernel-owner@vger.kernel.org
[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of raja
Sent: Tuesday, August 09, 2005 3:59 PM
To: linux-kernel@vger.kernel.org
Subject: query...
Hi,
I am Creating a posix message queue using the following code.
#include <stdio.h>
#include <stdlib.h>
#include <mqueue.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
int main(int argc,char *argv[])
{
mqd_t mq_des;
mq_des = mq_open(argv[1],O_CREAT | O_RDWR | O_EXCL,S_IRUSR | S_IWUSR
| S_IRGRP | S_IROTH , NULL);
if(mq_des < 0)
{
printf("Unable To Create MsgQ\n");
perror("mq_open");
return mq_des;
}
printf("MsgQ is Opened With Descriptor : %d\n",mq_des);
return mq_des;
}
and I after compiling I am giving
./a.out /root/Desktop/msgq1
But It is giving as unable to create message queue and showing error as
'permission denied'
Would you please help me.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel"
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 9+ messages in thread
* query
@ 2011-05-18 20:42 Filip, Anotonov
0 siblings, 0 replies; 9+ messages in thread
From: Filip, Anotonov @ 2011-05-18 20:42 UTC (permalink / raw)
To: katariqvn
Dear Sirs,
Our company is proud to offer new Business Directories from Russia, Eastern and Western-European countries.
Also we offer a database with contact details of Russian billionaires.
You can find detailed information about our products at our web site.
Sincerely,
Filip, Anotonov,
Zakmedia, Russia.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Query
@ 2011-03-16 9:35 snmp snmp
2011-03-16 11:54 ` Query Alan Cox
0 siblings, 1 reply; 9+ messages in thread
From: snmp snmp @ 2011-03-16 9:35 UTC (permalink / raw)
To: linux-kernel
Hi ,
Me and my friends are working on a new concept.
Idea is to run different kernels on different cores in a
multicore architecture. Each kernel is performing logically different
tasks. We believe to improve the cache performance and reduce cpu idle
time. This concept can be applied to filers , graphics processing
systems , embedded systems.
Our implementation is on Intel core 2 duo machine. So far our
implementation includes running two kernels simultaneously (one on
each core) , handling hard-disk on one core and ethernet on another
core so as to divide the network and disk subsystem.
But here we are unable to measure the performance. Can u please
suggest any method to measure the performance in terms of throughput
and response time?
Thank you.
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Query
2011-03-16 9:35 Query snmp snmp
@ 2011-03-16 11:54 ` Alan Cox
2011-03-17 12:04 ` Query snmp snmp
0 siblings, 1 reply; 9+ messages in thread
From: Alan Cox @ 2011-03-16 11:54 UTC (permalink / raw)
To: snmp snmp; +Cc: linux-kernel
> Me and my friends are working on a new concept.
It's not really new. Various systems have done this historically, and
folks including Larry McVoy have proposed that for large scalability you
might build a system out of multiple separate kernels one on each NUMA
node and which had interfaces to loan or share pages with one another by
bumping page counts and handling coherency.
Cool to see someone trying some of this in Linux
> Our implementation is on Intel core 2 duo machine. So far our
> implementation includes running two kernels simultaneously (one on
> each core) , handling hard-disk on one core and ethernet on another
> core so as to divide the network and disk subsystem.
>
> But here we are unable to measure the performance. Can u please
> suggest any method to measure the performance in terms of throughput
> and response time?
There are a bunch of standard benchmarks you can use. A lot of the big
name ones need clusters of systems to do the loading but there are things
like dbench that are quite useful on single systems.
For some of the applications you are talking about I think dbench might
be a good start.
Alan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Query
2011-03-16 11:54 ` Query Alan Cox
@ 2011-03-17 12:04 ` snmp snmp
0 siblings, 0 replies; 9+ messages in thread
From: snmp snmp @ 2011-03-17 12:04 UTC (permalink / raw)
To: Alan Cox; +Cc: linux-kernel
Thanks a lot for replying and your suggestions.
Actually , we have implemented this on SMP architecture.
We are trying to measure the performance with the tool you have suggested.
On Wed, Mar 16, 2011 at 5:24 PM, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
>> Me and my friends are working on a new concept.
>
> It's not really new. Various systems have done this historically, and
> folks including Larry McVoy have proposed that for large scalability you
> might build a system out of multiple separate kernels one on each NUMA
> node and which had interfaces to loan or share pages with one another by
> bumping page counts and handling coherency.
>
> Cool to see someone trying some of this in Linux
>
>> Our implementation is on Intel core 2 duo machine. So far our
>> implementation includes running two kernels simultaneously (one on
>> each core) , handling hard-disk on one core and ethernet on another
>> core so as to divide the network and disk subsystem.
>>
>> But here we are unable to measure the performance. Can u please
>> suggest any method to measure the performance in terms of throughput
>> and response time?
>
> There are a bunch of standard benchmarks you can use. A lot of the big
> name ones need clusters of systems to do the loading but there are things
> like dbench that are quite useful on single systems.
>
> For some of the applications you are talking about I think dbench might
> be a good start.
>
>
> Alan
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* query
@ 2001-06-02 10:08 Chanchal Chawla
2001-06-03 14:42 ` query Andreas Dilger
0 siblings, 1 reply; 9+ messages in thread
From: Chanchal Chawla @ 2001-06-02 10:08 UTC (permalink / raw)
To: linux-kernel
Hi All,
i'm writing a file system code, i've a query regarding that, i want you
to help me out if possible,
is it possible to get the absolute mount point of a device at run time
in that code ? if it is possible then how we can get it ?
i'll be thankful.
Regards
Chanchal
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: query
2001-06-02 10:08 query Chanchal Chawla
@ 2001-06-03 14:42 ` Andreas Dilger
0 siblings, 0 replies; 9+ messages in thread
From: Andreas Dilger @ 2001-06-03 14:42 UTC (permalink / raw)
To: Chanchal Chawla; +Cc: linux-kernel
Chanchal Chawla writes:
> i'm writing a file system code, i've a query regarding that, i want you
> to help me out if possible,
>
> is it possible to get the absolute mount point of a device at run time
> in that code ? if it is possible then how we can get it ?
It was possible in 2.2 with a minor hack. I did it by passing mountpoint
dentry via sb->s_root to filesystem, and using d_path() to do the path
lookup inside the filesystem. s_root is overwritten by the filesystem
to hold the new fs root dentry, so you need to get the path and store it
elsewhere before s_root is overwritten.
In 2.4 I was trying to get Al Viro to tell me the best way to do this, but
because it is _possible_ to mount a filesystem multiple times under 2.4 it
raises a question about which mountpoint you should use. In 2.4 you need
to supply an additional vfsmnt parameter to d_path(), and I never did get
an answer out of Al as to how to get a vfsmnt inside the filesystem, even
if there is only one mount of the filesystem.
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2011-05-18 19:39 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-09 10:28 query raja
2005-08-09 10:40 ` query Nikhil Dharashivkar
2005-08-09 10:58 ` query Sudheer
-- strict thread matches above, loose matches on Subject: below --
2011-05-18 20:42 query Filip, Anotonov
2011-03-16 9:35 Query snmp snmp
2011-03-16 11:54 ` Query Alan Cox
2011-03-17 12:04 ` Query snmp snmp
2001-06-02 10:08 query Chanchal Chawla
2001-06-03 14:42 ` query Andreas Dilger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox