Questions tagged [pmap]

161 questions
1
vote
0 answers

Can we consider the writable-private memory of "pmap -d " as the actual allocated memory of a program?

According to my understanding the pmap command is the best way to get the actual memory usage of a process in Linux. The output of the pmap -d command gives a output as follows. sujith@linux-1xs7:~> pmap -d 7752 7752: a.out START …
Sujith Gunawardhane
  • 1,251
  • 1
  • 10
  • 24
1
vote
1 answer

Julia: Accessing DArray in a function on a processor

I create a DArray: d = dzeros(3) Now I would like to run a function in parallel using pmap. I would like that function to access whatever part of d is local on the current processor. Something like function foo() global d a = localpart(d) …
bdeonovic
  • 4,130
  • 7
  • 40
  • 70
1
vote
1 answer

linux pmap understanding what is running in specific virtual address space

We have some sort of a huge memory leak going on and our process' resident memory is increasing exponentially. pmap -x shows something like: ... 00007f4ad85cd000 10530276 9129608 9129608 rw--- [ anon ] .... this anon is the one that is…
1
vote
1 answer

What is wrong with this command?

I'm not a software/scripting folk myself so struggling to understand what is happening here: watch -n 0.2 'ps -p $(pgrep -d',' -x snmpd) -o rss= | awk '{ i += $1 } END { print i }'' Basically I am wanting to print the Resident Set Size value of my…
uncle-junky
  • 723
  • 1
  • 8
  • 33
1
vote
2 answers

Understanding memory_get_usage() and pmap

I'm trying to understand memory usage of some php processes. I've tried using both get_memory_usage() and pmap, but the results seem to be off by about one order of magnitude. I've tried with both memory_get_usage() and memory_get_usage(true), as…
robguinness
  • 16,266
  • 14
  • 55
  • 65
0
votes
1 answer

Questions on Process Map

Here I am running two instance of same program in two different terminals. The process map of them are In first terminal - vikram@vikram-Studio-XPS-1645:~$ pmap 6548 6548: ./a.out 0000000000400000 4K r-x-- /home/vikram/a.out 0000000000600000…
Vikram
  • 1,999
  • 3
  • 23
  • 35
0
votes
1 answer

Diagnose RSS leak in Java when heap is stable

I am using a simple test program that I run for a few hours. public static void main(String[] args) { for (int i=1; i<500; i++) { run(); } } public static void run() { new Thread(new Runnable() { @Override …
Nora Olsen
  • 983
  • 2
  • 10
  • 22
0
votes
0 answers

Locking shared libraries in RAM

Address Kbytes RSS Dirty Mode Mapping 000055f4b738b000 12 0 0 r---- a.out 000055f4b738e000 12 4 0 r-x-- a.out 000055f4b7391000 4 0 0 r---- a.out 000055f4b7393000 4 0 …
user308485
  • 611
  • 1
  • 5
  • 25
0
votes
0 answers

Use pmap in purrr package of R to print every value of 3 vectors of varying length

I am trying to print out the vectors using pmap [might not be the best method, is a homework exercise to try out using pmap on different vector lengths, so need to use pmap function] set.seed(0) # Load and use MCMCglmm and purrr packages in…
0
votes
0 answers

Why is pmap [heap] readings different from the actual program's heap memory usage?

I was learning how pmap analyzes the memory usage of a program. Running this very basic program that initializes an int array with 1,000,000 elements should theoretically use 4,000,000 bytes (I tried adding or removing stdlib.h, but I got the same…
0
votes
0 answers

looping over a function with dictionary in python

I find myself re-running a function over and over, just to test different parameters. The function i am using is the mmm.fit - found here. I am following their example with their data. The parameter i keep iterating over is called "custom priors".…
Nneka
  • 1,764
  • 2
  • 15
  • 39
0
votes
1 answer

Grouped application of "two tibbles -> 1 list" functions, applied to each row of a tibble with tibble columns

I need to apply a function that takes two tibbles / data.frames as input, and outputs a list inside a grouped tibble. And the resulting lists should then be put in a column. So, I have this tibble library(dplyr) library(purrr) > out <-…
Fredrik Karlsson
  • 485
  • 8
  • 21
0
votes
2 answers

In R's purrr, why does pmap through Error in FUN(X[[i]], ...) : object '.z' not found when .z is clearly defined?

I'm trying to get better with pmap(), but I'm hitting some errors. In this example, I have a simple graphing function that I want to iterate over. My understanding of pmap() is that I can set and define an infinite number of parameters. However, I'm…
J.Sabree
  • 2,280
  • 19
  • 48
0
votes
1 answer

Using possibly with pmap and a function

I have a function like so: create_model_spec <- function(.parsnip_eng = list("lm"), .mode = list("regression"), .parsnip_fns = list("linear_reg"), …
MCP_infiltrator
  • 3,961
  • 10
  • 45
  • 82
0
votes
1 answer

how do I integrate pmap with a ggplot function?

I'm trying to use a ggplot function that I can use in a pipe with pmap, feeding a tibble of variables. These variables include the data frame, filtering options and plotting variables. The function works but in the context of pmap it doesn't with an…