Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8474283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:35:11+00:00 2026-06-10T17:35:11+00:00

In the redis source I have found Rss Information, but I don’t know what

  • 0

In the redis source I have found “Rss Information”, but I don’t know what this.

If I use Google search with the query string “file rss information”, the only results I get are like “RSS xml feed”.

This is defined in the source:

size_t zmalloc_get_rss(void) {
   int page = sysconf(_SC_PAGESIZE);
   size_t rss;
   char buf[4096];
   char filename[256];
   int fd, count;
   char *p, *x;

   snprintf(filename,256,"/proc/%d/stat",getpid());
   if ((fd = open(filename,O_RDONLY)) == -1) return 0;
   if (read(fd,buf,4096) <= 0) {
       close(fd);
       return 0;
   }
   close(fd);

   p = buf;
   count = 23; /* RSS is the 24th field in /proc/<pid>/stat */
   while(p && count--) {
       p = strchr(p,' ');
       if (p) p++;
   }
   if (!p) return 0;
   x = strchr(p,' ');
   if (!x) return 0;
   *x = '\0';

   rss = strtoll(p,NULL,10);
   rss *= page;
   return rss;
}

Will this get process memory? I can only guess.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:35:12+00:00Added an answer on June 10, 2026 at 5:35 pm

    Yes, RSS means “resident set size”.

    See proc’s manual page:

    Resident Set Size: number of pages the process has in real memory. This is just the pages which count toward text, data, or stack space. This does not include pages which have not been demand-loaded in, or which are swapped out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use redis for my game's leaderboard data and I have seen
I have this code from the PIL-handbook but I get an error message. from
I have found this script and cant seem to figure out why it throws
Redis is conceptually different from traditional SQL databases that I use, and I'm trying
If redis gets overloaded, can I configure it to drop set requests? I have
Using redis-rb, how can I push a hash into a list? Do I have
in Redis ( http://code.google.com/p/redis ) there are scores associated to elements, in order to
I am using Redis 2.4.6 Stable. I have increased the number of redis file
I just NuGetted ServiceStack.Redis 3.1.3 but as its dependencies it also gets ServiceStack.Common and
I have a system set up currently that is using celery with a redis

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.