# Pipes

**URL:** <https://forums.suse.com/t/pipes/25456>\
**Category:** SLES Configure-Administer\
**Created:** [April 24, 2014, 8:10pm UTC](https://forums.suse.com/t/pipes/25456 "2014-04-24T20:10:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonujoy](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jonujoy](https://forums.suse.com/u/jonujoy)\
**Post date:** [April 24, 2014, 8:10pm UTC](https://forums.suse.com/t/pipes/25456/1 "2014-04-24T20:10:27Z")

</div>

hi , we have a process which uses Linux Pipes, and often terminates without any logs, we want to know if the linux pipes uses the shared memory which is administered through IPCS.

Thank you  
Jonu Joy

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [April 24, 2014, 10:53pm UTC](https://forums.suse.com/t/pipes/25456/2 "2014-04-24T22:53:25Z")

</div>

As far as I know pipes (named or anonymous) do not use shared memory at all.

Which version (and service/support pack level) of SLES are you using?

What is the program you are using?

Why do you think pipes are involved (any tests you’ve done to focus on  
that already?)?

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below…

---

<div class="post-metadata">

**Author:** ![jonujoy](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jonujoy](https://forums.suse.com/u/jonujoy)\
**Post date:** [April 24, 2014, 11:11pm UTC](https://forums.suse.com/t/pipes/25456/3 "2014-04-24T23:11:54Z")

</div>

we are using

SUSE Linux Enterprise Server 11 (x86\_64)  
VERSION = 11  
PATCHLEVEL = 2

we have an SAP process which is migrating the database from oracle to HANA and it created the following files

prwx------ 1 aaxadm sapsys 0 Apr 21 11:20 MIGRATE\_DT\_00008.PIPE  
prwx------ 1 aaxadm sapsys 0 Apr 21 11:20 MIGRATE\_DT\_00007.PIPE  
prwx------ 1 aaxadm sapsys 0 Apr 21 11:20 MIGRATE\_DT\_00006.PIPE

the process breaks sometimes and we wanted to know if it uses shared memory at all so that we can tweak it, if named pipes dosent use shared memory at all (IPCS), then no need to bother about it .

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [April 25, 2014, 1:22am UTC](https://forums.suse.com/t/pipes/25456/4 "2014-04-25T01:22:55Z")

</div>

Hi jonujoy,

as ab already wrote, named pipes aren’t using shared memory. You can check the system’s maximum buffer for named pipes via

```auto
cat /proc/sys/fs/pipe-max-size
```

but that’s only the upper limit - the processes can use fcntl() to change to a value below that. If that buffer fills up (because the receiving end is consuming too slow), the sending end ought to block.

You might consider to attach to the running process via “strace” or “gdb” to see if the process terminates regularly, as opposed to after receiving a signal.

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![jonujoy](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jonujoy](https://forums.suse.com/u/jonujoy)\
**Post date:** [April 25, 2014, 5:01pm UTC](https://forums.suse.com/t/pipes/25456/5 "2014-04-25T17:01:59Z")

</div>

thx much , so the max memory a pipe can use is controlled by /proc/sys/fs/pipe-max-size, and is there a way to check how much memory a named pipe is using at the moment .

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [April 25, 2014, 5:21pm UTC](https://forums.suse.com/t/pipes/25456/6 "2014-04-25T17:21:17Z")

</div>

Hi jonujoy,

> is there a way to check how much memory a named pipe is using at the moment

I know of no way to check the current buffer size of a given named pipe nor a way to check how much of that is currently used. You might want to check the kernel source to see if there’s such an interface at all and if yes, we might find a way to call it…

Regards,  
Jens
