|
RE: Adaptive partitions for network
|
01/08/2010 7:26 AM
post44791
|
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
|
01/08/2010 10:50 AM
post44809
|
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
|
|
|