rmSessions: rmSessions

Description Usage Arguments See Also

Description

The rmSessions function is used to delete task queues that weren't properly destroyed. A task queue is created by the startWorkers function, and is deleted by the stopWorkers function. If stopWorkers isn't called, then the interprocess communication (IPC) resources used to implement the task queue will still exist after the R session is finished. This is known as a resource leak, and can become a problem. The leaked resources should be cleaned up after the machine is rebooted, but this function allows the resources from a previous R session to be deleted without needing to reboot the machine.

Usually, you know you need to call rmSessions when you get a warning message from startWorkers saying that there are other worker groups. This could be due to multiple concurrent doSMP sessions (which could lead to lower performance), or it could be because stopWorkers wasn't called at the end of a session.

Usage

1

Arguments

qnames

vector of queue names to delete. Legal values are: doSMP1, doSMP2, doSMP3, doSMP4, doSMP5, doSMP6, doSMP7, doSMP8.

all.names

a logical value. If TRUE, all existing queues will be deleted. This is a short cut, and should not be set to TRUE if qnames is specified.

See Also

startWorkers, stopWorkers


doSMP documentation built on May 2, 2019, 5:35 p.m.