Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Adaptive partitions for network: (8 Items)
   
Adaptive partitions for network  
Hi all,

I have QNX Neutrino 641 Eval and I am setting up adaptive partitions.

To have a separate partition for all network traffic, what are the components I have to put into?
Initially I tried to put io-pkt-v4-hc into a partition but when I do this the en0 disappears and I have to reboot the 
system.

Any suggestions?
Re: Adaptive partitions for network  
You might want to ask the question "what are all the networking components" in the Networking forum:
<http://community.qnx.com/sf/projects/networking>;

You may also want to move some of the clients of networking compontents to your special partition.

-ad

Victor Parera wrote:
> Hi all,
> 
> I have QNX Neutrino 641 Eval and I am setting up adaptive partitions.
> 
> To have a separate partition for all network traffic, what are the components I have to put into?
> Initially I tried to put io-pkt-v4-hc into a partition but when I do this the en0 disappears and I have to reboot the 
system.
> 
> Any suggestions?
> 
> 
> 
> _______________________________________________
> 
> OSTech
> http://community.qnx.com/sf/go/post44714
> 

Re: Adaptive partitions for network  
well yes, I am looking for all networking components. But I am currently very confused as to which of these go into my 
partitions. Are network drivers, the stack and network manager enough? What about librariesß what about the actual /dev
 like en0 ppp0 etc? There are some network services started as system services in the sysinit. What about them? Have 
these got any meaning if put in network partition?

Could you please help.
RE: Adaptive partitions for network  
You just need to start the binaries in your partition.

Don't start any network components in your sysinit(if you don't want to hack up the enumerator system then you could 
just slay io-pkt in your rc.local file before restarting it in your aps partition).  

For example if you have the following(in your build file you've included the [module=aps] attribute to the procnto line 
and created the partition via the entry: sched_aps Network 30):
$ aps
                    +---- CPU Time ----+-- Critical Time --
Partition name   id | Budget |    Used | Budget |      Used
--------------------+------------------+-------------------
System            0 |    70% |  15.09% |  100ms |   0.000ms
Network           1 |    30% |   0.00% |    0ms |   0.000ms
--------------------+------------------+-------------------
Total               |   100% |  15.09% |

In your /etc/rc.d/rc.local file you could do:
on -Xaps=Network io-pkt-v4-hc -ptcpip
on -Xaps=Network ifconfig en0 10.42.102.51 netmask 0xfffff000 up
on -Xaps=Network portmap &
on -Xaps=Network nfsd &
on -Xaps=Network inetd &
on -Xaps=Network mount -T io-pkt /lib/dll/lsm-qnet.so
on -Xaps=Network syslogd &
on -Xaps=Network /usr/sbin/fs-nfs2 stryker:/usr/qa /usr/qa &


Chris


-----Original Message-----
From: Victor Parera [mailto:community-noreply@qnx.com] 
Sent: Friday, January 08, 2010 4:41 AM
To: ostech-core_os
Subject: Re: Adaptive partitions for network

well yes, I am looking for all networking components. But I am currently very confused as to which of these go into my 
partitions. Are network drivers, the stack and network manager enough? What about librariesß what about the actual /dev
 like en0 ppp0 etc? There are some network services started as system services in the sysinit. What about them? Have 
these got any meaning if put in network partition?

Could you please help.



_______________________________________________

OSTech
http://community.qnx.com/sf/go/post44786
Re: Adaptive partitions for network  
Not Libraries. Only threads live in partition.

You'll probably need to launch all the network driver processes your separate partition. But since I know nothing about 

networking I cant tell you which ones the are. (Which is why I suggested you ask the networking guys.)

That alone may not be enough. If your network components are written as proper QNX resource managers (and I image they 
are), then you may need to move the client to your networking partition too. That's because when a client sends a 
Send/Receive/Reply message to a resource manager, APS automatically runs the resource manager in the partition of the 
client -- not the origianl partition of the resource manager.

Sorry I can't be more specific. I just don't know enough about how the networking components.

-ad

Victor Parera wrote:
> well yes, I am looking for all networking components. But I am currently very confused as to which of these go into my
 partitions. Are network drivers, the stack and network manager enough? What about librariesß what about the actual /
dev like en0 ppp0 etc? There are some network services started as system services in the sysinit. What about them? Have 
these got any meaning if put in network partition?
> 
> Could you please help.
> 
> 
> 
> _______________________________________________
> 
> OSTech
> http://community.qnx.com/sf/go/post44786

Re: Adaptive partitions for network  

@Chris 

I did try launching the network components like you had mentioned. However all I see is the en0 disappear. I tried 
digging deeper into this.

Do you think I should mount the driver of the thernet also in this partition to get it working?
I found from /etc/system/enum/devices that my device is AMD PCNET. 

Should I put all these network components plus the mount for the driver in an 'overrides' file under enum(now that it 
doesnt work in rc.local or from the build files)???

@Attilla
Thank you for the explanation :)
RE: Adaptive partitions for network  
Yes, you can just add the -dpcnet to your io-pkt line.  I'm not sure
about the overrides file?  Is that documented somewhere?

The easiest thing to do is to just slay io-pkt in the rc.local file and
then run it again in your partition.

Chris

-----Original Message-----
From: Victor Parera [mailto:community-noreply@qnx.com] 
Sent: Monday, January 11, 2010 3:50 AM
To: ostech-core_os
Subject: Re: Adaptive partitions for network



@Chris 

I did try launching the network components like you had mentioned.
However all I see is the en0 disappear. I tried digging deeper into
this.

Do you think I should mount the driver of the thernet also in this
partition to get it working?
I found from /etc/system/enum/devices that my device is AMD PCNET. 

Should I put all these network components plus the mount for the driver
in an 'overrides' file under enum(now that it doesnt work in rc.local or
from the build files)???

@Attilla
Thank you for the explanation :)



_______________________________________________

OSTech
http://community.qnx.com/sf/go/post44869
Re: RE: Adaptive partitions for network  
Thanks Chris.

I found the problem.

I added a 'waitfor /dev/io-net/en0' in my rc.local file after starting the tcpip stack and mounting the driver and 
before doing an ifconfig

Now it all works.

Moral: Wait for the enum to enumerate io-net which then sets en0.

This post helped me:

http://community.qnx.com/sf/go/topc2211