cancel
Showing results for 
Search instead for 
Did you mean: 

copying program from Program Buffer to Local memory

wa13n
Explorer
0 Kudos
127

hi all.

when work processes(WPs) execute requests, WPs copy programs from Program Buffer into its Local memory(PROC memory, i guess). Why does WPs do that? does it make faster to execute programs or any reasons?

Accepted Solutions (1)

Accepted Solutions (1)

sumitjais
Active Contributor

Hi Yuki,

The functions of the buffers in case of SAP are alike everywhere ( you may recall any of the databases e.g oracle, sql) i.e they act as intermediate cache.

The main advantage of the work process reading program buffer is to reduce the database hits .This surely gives a faster result in general.

Also,note that program buffer contains the compiled versions of ABAP programs stored in shared memory so to access the buffer data ,it does not actually have to copy it but access through pointers.Another reason for faster result.


wa13n
Explorer
0 Kudos

Dear Sumit,

thanks for your reply.

OK, so work processes own the pointers to specific programs in their local memory, right?

Answers (1)

Answers (1)

sumitjais
Active Contributor
0 Kudos

Yuki, That's true.

This is the advantage of accessing shared memory data.

wa13n
Explorer

Sumit,

thanks a lot, really good explanations to understand!!!