* DCE: Advice for large RPC call
@ 1994-08-11 21:53 John Connolly
1994-08-16 17:31 ` Seiichi Tatsukawa
0 siblings, 1 reply; 7+ messages in thread
From: John Connolly @ 1994-08-11 21:53 UTC (permalink / raw)
I am looking for suggestions on how to handle large volume DCE RPC calls.
By large volume I mean a single RPC that may return a list of
items that could total one or more MB in size.
Our current solution is to increase the default thread stack size and return
the data as an output parameter. This will crash when the list
exceeds the stack size. The alternative to create a pipe, but this is
less than convienent for link lists.
I would appreciate the wisdom of those who have worked with this
situation in DCE. In particular, how to return variable size
potentially large lists, without using pipes.
--
John Connolly, EDS
jconno03@cps.plnin.gmeds.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: DCE: Advice for large RPC call
1994-08-11 21:53 DCE: Advice for large RPC call John Connolly
@ 1994-08-16 17:31 ` Seiichi Tatsukawa
1994-08-17 17:13 ` John Connolly
0 siblings, 1 reply; 7+ messages in thread
From: Seiichi Tatsukawa @ 1994-08-16 17:31 UTC (permalink / raw)
In article <JCONNO03.94Aug11175300@Saturn.cps.plnin.gmeds.com> jconno03@cps.plnin.gmeds.com (John Connolly) writes:
>
>Our current solution is to increase the default thread stack size and return
>the data as an output parameter. This will crash when the list
>exceeds the stack size. The alternative to create a pipe, but this is
>less than convienent for link lists.
Are you trying to send the linked list as a linked list? That
won't work. Use transmit_as IDL attribute and send it as an
array.
--- Seiichi
--
+ Seiichi Tatsukawa (^[$BN)@n@:0l^[(B) tatsu_s@ch.hp.com +
+ Hewlett-Packard/Open Systems Software Division +
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: DCE: Advice for large RPC call
1994-08-16 17:31 ` Seiichi Tatsukawa
@ 1994-08-17 17:13 ` John Connolly
1994-08-17 23:23 ` Jon Mauney
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: John Connolly @ 1994-08-17 17:13 UTC (permalink / raw)
>>>>> "Seiichi" == Seiichi Tatsukawa <tatsu_s@apollo.hp.com> writes:
Seiichi> In article <JCONNO03.94Aug11175300@Saturn.cps.plnin.gmeds.com> jconno03@cps.plnin.gmeds.com (John Connolly) writes:
>>
>> Our current solution is to increase the default thread stack size and return
>> the data as an output parameter. This will crash when the list
>> exceeds the stack size. The alternative to create a pipe, but this is
>> less than convienent for link lists.
Seiichi> Are you trying to send the linked list as a linked list? That
Seiichi> won't work. Use transmit_as IDL attribute and send it as an
Seiichi> array.
Seiichi> --- Seiichi
Seiichi> --
Seiichi> + Seiichi Tatsukawa (^[$BN)@n@:0l^[(B) tatsu_s@ch.hp.com +
Seiichi> + Hewlett-Packard/Open Systems Software Division +
I am trying to avoid the limitations of the DCE thread stack. For
pipes, we cannot transmit the data as a linked list, which is one of
the reasons to avoid the use of pipes!
--
John Connolly, EDS
jconno03@cps.plnin.gmeds.com
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: DCE: Advice for large RPC call
1994-08-17 17:13 ` John Connolly
@ 1994-08-17 23:23 ` Jon Mauney
1994-08-18 16:24 ` John Connolly
1994-08-18 18:07 ` Seiichi Tatsukawa
1994-08-19 19:07 ` Henry Lee
2 siblings, 1 reply; 7+ messages in thread
From: Jon Mauney @ 1994-08-17 23:23 UTC (permalink / raw)
jconno03@cps.plnin.gmeds.com (John Connolly) writes:
>I am trying to avoid the limitations of the DCE thread stack. For
>pipes, we cannot transmit the data as a linked list, which is one of
>the reasons to avoid the use of pipes!
I still don't follow your reasoning wrt pipes, since you
can't return a linked list directly anyway.
You'll have to write code to put the list data into a marshallable
data type, like an array (unless you have a nice tool to do it
for you). So I'm wondering why it isn't convenient to fold that
code into the push-pull code that a pipe would use?
--
Jon Mauney mauney@jtec.mauney.com
Mauney Computer Consulting (919) 828-8053
"Have TGT, will travel."
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: DCE: Advice for large RPC call
1994-08-17 23:23 ` Jon Mauney
@ 1994-08-18 16:24 ` John Connolly
0 siblings, 0 replies; 7+ messages in thread
From: John Connolly @ 1994-08-18 16:24 UTC (permalink / raw)
>>>>> "Jon" == Jon Mauney <mauney@adm.csc.ncsu.edu> writes:
Jon> I still don't follow your reasoning wrt pipes, since you
Jon> can't return a linked list directly anyway.
Jon> You'll have to write code to put the list data into a marshallable
Jon> data type, like an array (unless you have a nice tool to do it
Jon> for you). So I'm wondering why it isn't convenient to fold that
Jon> code into the push-pull code that a pipe would use?
Yes we can do that. However, our first preference is to not have to write the
push and pull routines. It is a convenience and effort issue. We have
many RPC calls to write, and it is simplier for the developers to
treat them as traditional procedure calls.
--
John Connolly, EDS
jconno03@cps.plnin.gmeds.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: DCE: Advice for large RPC call
1994-08-17 17:13 ` John Connolly
1994-08-17 23:23 ` Jon Mauney
@ 1994-08-18 18:07 ` Seiichi Tatsukawa
1994-08-19 19:07 ` Henry Lee
2 siblings, 0 replies; 7+ messages in thread
From: Seiichi Tatsukawa @ 1994-08-18 18:07 UTC (permalink / raw)
In article <JCONNO03.94Aug17131300@pluto.cps.plnin.gmeds.com> jconno03@cps.plnin.gmeds.com (John Connolly) writes:
>I am trying to avoid the limitations of the DCE thread stack. For
>pipes, we cannot transmit the data as a linked list, which is one of
>the reasons to avoid the use of pipes!
You don't need to use pipes. Just use [transmit_as()] IDL
attribute. For instance,
const long MAX_LIST_LEN = 100000;
typedef struct xmit_t
{
long last;
[last_is(last)] long values[MAX_LIST_LEN];
} xmit_t;
typedef [transmit_as(xmit_t)] struct list_t
{
long value;
struct list_t *next;
} list_t;
long send_it
(
[in] handle_t h,
[in] struct list_t list
);
Then, you provide these functions:
void list_t_from_xmit(xmit_t *xmit_object, list_t *object);
void list_t_to_xmit(list_t *object, xmit_t **xmit_object);
void list_t_free_inst(list_t *object);
void list_t_free_xmit(xmit_t *xmit_object);
(See the IDL generated header.)
--- Seiichi
P.S.
The un/marshaling of the linked list is done by recursively
calling the pointer un/marshaling routine. Thus, you hit the
stack limit (deep call stack).
--
+ Seiichi Tatsukawa (^[$BN)@n@:0l^[(B) tatsu_s@ch.hp.com +
+ Hewlett-Packard/Open Systems Software Division +
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: DCE: Advice for large RPC call
1994-08-17 17:13 ` John Connolly
1994-08-17 23:23 ` Jon Mauney
1994-08-18 18:07 ` Seiichi Tatsukawa
@ 1994-08-19 19:07 ` Henry Lee
2 siblings, 0 replies; 7+ messages in thread
From: Henry Lee @ 1994-08-19 19:07 UTC (permalink / raw)
In article <JCONNO03.94Aug17131300@pluto.cps.plnin.gmeds.com>, jconno03@cps.plnin.gmeds.com (John Connolly) writes:
> >>>>> "Seiichi" == Seiichi Tatsukawa <tatsu_s@apollo.hp.com> writes:
>
> Seiichi> In article <JCONNO03.94Aug11175300@Saturn.cps.plnin.gmeds.com> jconno03@cps.plnin.gmeds.com (John Connolly) writes:
> >>
> >> Our current solution is to increase the default thread stack size and return
> >> the data as an output parameter. This will crash when the list
> >> exceeds the stack size. The alternative to create a pipe, but this is
> >> less than convienent for link lists.
>
Have you tried using the heap ACF attribute? This may solve
your stack size problems.
Not speaking for IBM,
Henry Lee
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1994-08-19 19:07 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-08-11 21:53 DCE: Advice for large RPC call John Connolly
1994-08-16 17:31 ` Seiichi Tatsukawa
1994-08-17 17:13 ` John Connolly
1994-08-17 23:23 ` Jon Mauney
1994-08-18 16:24 ` John Connolly
1994-08-18 18:07 ` Seiichi Tatsukawa
1994-08-19 19:07 ` Henry Lee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox