Find the answer to your Linux question:
Results 1 to 10 of 10
Hello I run many applications and I have conky and the ram area says I have 2 gigs that is actually being used but I have 6 gigs left because ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Sep 2012
    Posts
    148

    Ram allocation in linux mint


    Hello I run many applications and I have conky and the ram area says I have 2 gigs that is actually being used but I have 6 gigs left because I have 8 gigs but it is acting like I only have like 2.

  2. #2
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,651
    Can you post the output of
    Code:
    free -m
    It should look something like this

    Code:
                 total       used       free     shared    buffers     cached
    Mem:         15981      15725        256          0       2593      10516
    -/+ buffers/cache:       2615      13366
    Swap:          999          0        999
    Which shows that the vast majority of my 16GB is allocated to buffers and cache but is free for use if required. As there are several memory variables in conky can you also post the relevant part of your conky file?
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

  3. #3
    Linux Newbie
    Join Date
    Sep 2012
    Posts
    148
    Ok here is the output of the command you posted thanks
    Screenshot from 2013-04-11 12:35:36.jpg

  4. $spacer_open
    $spacer_close
  5. #4
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,651
    And the conky file?
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

  6. #5
    Linux Newbie
    Join Date
    Sep 2012
    Posts
    148
    Oh yeah sorry here is my conky code

    Code:
    # UBUNTU-CONKY
    # A comprehensive conky script, configured for use on
    # Ubuntu / Debian Gnome, without the need for any external scripts.
    #
    # Based on conky-jc and the default .conkyrc.
    # INCLUDES:
    # - tail of /var/log/messages 
    # - netstat connections to your computer
    #
    # -- Pengo (conky@pengo.us)
    #
    
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    background no
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # fiddle with window
    use_spacer yes
    use_xft yes
    
    # Update interval in seconds
    update_interval 3.0
    
    # Minimum size of text area
    minimum_size 400
    
    # Draw shades?
    draw_shades yes
    
    # Text stuff
    draw_outline no # amplifies text if yes
    draw_borders no
    
    uppercase no # set to yes if you want all text to be in uppercase
    
    # Stippled borders?
    stippled_borders 8
    
    # border margins
    border_margin 4
    
    # border width
    border_width 1
    
    # Default colors and also border colors, grey90 == #e5e5e5
    default_color white
    default_shade_color black
    default_outline_color white
    
    own_window_colour blue
    own_window_transparent yes
    
    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    
    # Gap between borders of screen and text
    gap_x 10
    gap_y 10
    
    # stuff after 'TEXT' will be formatted on screen
    
    override_utf8_locale no
    xftfont Terminus:size=8
    xftalpha 0.8
    
    TEXT
    
    ${offset 240}${color slate grey}${time %a, } ${color }${time %e %B %G}
    ${offset 240}${color slate grey}${time %Z,    }${color }${time %H:%M:%S}
    ${offset 240}${color slate grey}UpTime: ${color }$uptime
    ${offset 240}${color slate grey}Kern:${color }$kernel
    ${offset 240}${color slate grey}CPU:${color } $cpu% ${acpitemp}C
    ${offset 240}${cpugraph 20,130 000000 ffffff}
    ${offset 240}${color slate grey}Load: ${color }$loadavg
    ${offset 240}${color slate grey}Processes: ${color }$processes  
    ${offset 240}${color slate grey}Running:   ${color }$running_processes
    
    ${offset 240}${color slate grey}Highest CPU:
    ${offset 240}${color #ddaa00} ${top name 1}${top_mem cpu 1}
    ${offset 240}${color lightgrey} ${top name 2}${top cpu 2}
    ${offset 240}${color lightgrey} ${top name 3}${top cpu 3}
    ${offset 240}${color lightgrey} ${top name 4}${top cpu 4}
    
    ${offset 240}${color slate grey}Highest MEM:
    ${offset 240}${color #ddaa00} ${top_mem name 1}${top_mem mem 1}
    ${offset 240}${color lightgrey} ${top_mem name 2}${top_mem mem 2}
    ${offset 240}${color lightgrey} ${top_mem name 3}${top_mem mem 3}
    ${offset 240}${color lightgrey} ${top_mem name 4}${top_mem mem 4}
    
    ${offset 240}${color slate grey}MEM:  ${color } $memperc% $mem/$memmax
    ${offset 240}${membar 3,100}
    ${offset 240}${color slate grey}SWAP: ${color }$swapperc% $swap/$swapmax
    ${offset 240}${swapbar 3,100}
    
    ${offset 240}${color slate grey}ROOT:    ${color }${fs_free /}/${fs_size /}
    ${offset 240}${fs_bar 3,100 /}
    ${offset 240}${color slate grey}HOME:  ${color }${fs_free /home}/${fs_size /home}
    ${offset 240}${fs_bar 3,100 /home}
    ${offset 240}${color slate grey}SLACK:  ${color }${fs_free /mnt/slack}/${fs_size /mnt/slack}
    ${offset 240}${fs_bar 3,100 /mnt/slack}
    ${offset 240}${color slate grey}NET: 
    ${offset 240}${color}Up: ${color }${upspeed wlan0} k/s
    ${offset 240}${upspeedgraph eth0 20,130 000000 ffffff}
    ${offset 240}${color}Down: ${color }${downspeed wlan0}k/s${color}
    ${offset 240}${downspeedgraph eth0 20,130 000000 ffffff}

  7. #6
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,651
    That conky correctly reports my memory. What is it showing for you? can you post a screen shot?
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

  8. #7
    Linux Newbie
    Join Date
    Sep 2012
    Posts
    148
    Ok here is my conky screen shot

    Screenshot from 2013-04-11 16:24:45.jpg

  9. #8
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,651
    From what I can make out, and the screen shot isn't that clear, that looks OK to me. It's showing used / total.
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

  10. #9
    Linux Newbie
    Join Date
    Sep 2012
    Posts
    148
    But I wonder why it is so laggy when I have 8 gigs of ram and it says its only using 2 at the most?

  11. #10
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,651
    Because that's all that has been actually used. The $mem variable can include buffers and cache if you want by simply adding a line with
    Code:
    no_buffers no
    before the TEXT in the conky file.
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •